-
Notifications
You must be signed in to change notification settings - Fork 54
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
Please ship javascript and .d.ts. files #81
Comments
Hey @t-animal, thanks a lot for the suggestion and providing the reference. As It was fine to ship it as TypeScript and Vite handles it automatically. You'd need to install TypeScript for type-checking, etc. That being said, I would definitely look into it and overall might end up better shipping Will close this issue once updated. |
Stuff like this is pretty much exactly why I'm not happy about the general adoption of esbuild, because it just is not a typescript compiler (not sure if they still claim that). Anyways, when bootstrapping a react with vite and the |
Ping if you need help in doing so, meanwhile I'll check on my own and see if we can do it. |
Does this can be fixed by shipping TS & dts files? Hoping for a clear response of the TS team on that here |
Hey @ArnaudBarre, thanks for your input, tbh I thought I suspect using I also like Bun and Deno approach, I started this library as one source code file without transpilation or build step which was a very nice author experience and made it super easy to iterate fast. I subscribed to your comment to get an update. Thanks again! |
Compiling of dependant projects fails, if they have a stricter
tsc
config (e.g. enablenoPropertyAccessFromIndexSignature
and you getThis could be improved by shipping compiled javascript-code and
.d.ts
typings. That would also allow people not using typescript to use the library.See also microsoft/TypeScript#47387 (comment)
The text was updated successfully, but these errors were encountered: