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
Issue:package.json can contain any of the two fields types and typings. When TypeScript resolves a module it may look for either of the two fields. It would be beneficial from a clarity and documentation standpoint if the Module Resolution.md mentioned that the typings field can be used interchangeably with the types field.
Recommended fix: Rewrite for clarity in Module Resolution.md under the following section:
Add a note under "How TypeScript resolves modules" mentioning typings is also permissible in package.json
Under relative import pt. 4, mention typings within parenthesis.
Under non-relative import pt. 4, 12, and 20, mention typings within parenthesis.
Leave output under "Tracing module resolution" in the current state as it is not incorrect.
Add a note under "Things to look out for" pt 3, indicating that the output may contain a typings field.
The text was updated successfully, but these errors were encountered:
Per #2804, we're not accepting non-critical issues. That being said, I think we already turned down this change as typings is not something we want anyone using even if it technically works.
Page URL: https://www.typescriptlang.org/docs/handbook/module-resolution.html#how-typescript-resolves-modules
Issue:
package.json
can contain any of the two fieldstypes
andtypings
. When TypeScript resolves a module it may look for either of the two fields. It would be beneficial from a clarity and documentation standpoint if theModule Resolution.md
mentioned that thetypings
field can be used interchangeably with thetypes
field.Recommended fix: Rewrite for clarity in Module Resolution.md under the following section:
typings
is also permissible inpackage.json
typings
within parenthesis.typings
within parenthesis.typings
field.The text was updated successfully, but these errors were encountered: