Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes about Typescript support #4

Closed
cinnamon-bun opened this issue Apr 16, 2021 · 1 comment
Closed

Notes about Typescript support #4

cinnamon-bun opened this issue Apr 16, 2021 · 1 comment

Comments

@cinnamon-bun
Copy link
Contributor

12:13 PM gwil:

These files could be typescript and esbuild would be able to build them to JS modules just fine. The only thing we’d need is a poly.d.ts declarations file and types property in package.json which TS consumers could use for types.

@sgwilym
Copy link
Owner

sgwilym commented Apr 17, 2021

The only sad thing about this is esbuild can't build declaration files, only tsc can - so we'll have this rippingly fast bundling process and then have to wait around a while longer for tsc to compile the declaration files. See evanw/esbuild#95

@sgwilym sgwilym closed this as completed Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants