For example, if your project has a type named Node or Comment that shadows the Node or Comment interfaces available from the global DOM types, it can be annoying to import these manually, since TypeScript will always "see" them and instead give you typing errors for mismatched properties. Sometimes, it doesn't even seem to suggest an import from the local project.
For example, if your project has a type named
Node
orComment
that shadows theNode
orComment
interfaces available from the global DOM types, it can be annoying to import these manually, since TypeScript will always "see" them and instead give you typing errors for mismatched properties. Sometimes, it doesn't even seem to suggest an import from the local project.