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
When using Parcel to build a TypeScript project and including the types field in package.json, a typing file is created, but is incomplete and unable to be used.
A types file or files containing everything necessary to provide type hinting and checking should be output when including the types field in package.json. For example, this is what tsc --emitDeclarationOnly yields:
🐛 bug report
When using Parcel to build a TypeScript project and including the
types
field inpackage.json
, a typing file is created, but is incomplete and unable to be used.🎛 Configuration (.babelrc, package.json, cli command)
See my repro repo at https://github.com/AKPWebDesign/typing-problem
🤔 Expected Behavior
A types file or files containing everything necessary to provide type hinting and checking should be output when including the
types
field inpackage.json
. For example, this is whattsc --emitDeclarationOnly
yields:😯 Current Behavior
A broken types file is generated, which doesn't contain any type information:
🔦 Context
The context here is that I have a Typescript React component library that I'm trying to build and publish for use in another Typescript React project.
💻 Code Sample
https://github.com/AKPWebDesign/typing-problem
🌍 Your Environment
The text was updated successfully, but these errors were encountered: