Roman Veselý Software Engineer from Slovakia. Somewhere between trees and bytes of code.

Log #0023

While resolving import statements, @types directory is significant for TypeScript compiler, as it looks there for type declarations before it reaches the actual package node_modules directory. The logic behind this behavior is that if the package itself had type declarations, you wouldn’t have installed it from DefinitelyTyped.