You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
A lot of people seem to think it's necessary to specify typeRoots to import things -- e.g., microsoft/TypeScript#20610. Our documentation says that things in typeRoots are "included", which could cause people to think they need to "include" things to be able to import them, which isn't true -- imports go through module resolution, not typeRoots.
The text was updated successfully, but these errors were encountered:
The meaning of "include" also affects the "exclude" option in tsconfig -- a lot of people think they can use it to prevent a file from being imported, for example in microsoft/TypeScript#21189.
A lot of people seem to think it's necessary to specify
typeRoots
to import things -- e.g., microsoft/TypeScript#20610. Our documentation says that things intypeRoots
are "included", which could cause people to think they need to "include" things to be able to import them, which isn't true -- imports go through module resolution, nottypeRoots
.The text was updated successfully, but these errors were encountered: