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
I'd love to generate multiple .d.ts files for multiple targets.
🤔 Expected Behavior
A library could have multiple entry points, like my-pkg/client and my-pkg/server. In such case, it should have multiple type declaration files, like dist/client.d.ts and dist/server.d.ts.
😯 Current Behavior
parcel only supports generate one .d.ts file from the types field in package.json according to the docs.
When building a library, Parcel can extract the types from your entry point and generate a .d.ts file. Use the types field in package.json alongside a target such as main or module to enable this.
🙋 feature request
I'd love to generate multiple
.d.ts
files for multiple targets.🤔 Expected Behavior
A library could have multiple entry points, like
my-pkg/client
andmy-pkg/server
. In such case, it should have multiple type declaration files, likedist/client.d.ts
anddist/server.d.ts
.😯 Current Behavior
parcel
only supports generate one.d.ts
file from thetypes
field inpackage.json
according to the docs.💁 Possible Solution
Maybe we can add
types
totargets
🔦 Context
N/A
💻 Examples
N/A
The text was updated successfully, but these errors were encountered: