-
Notifications
You must be signed in to change notification settings - Fork 0
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
Generate TypeScript files instead of JS files? #238
Comments
We can likely offer an option Can you test if changing the file endings to |
Unfortunately no, looks like JSDoc type annotations are only supported in JS files. That said, I think my actual problem was that I was missing Remix's |
Can confirm. TypeScript complains with "ts 80004: Please convert JSDoc to TypeScript types". Ergh bummer. It seems like we need to run the typescript compiler with emitDeclarations only to parse the JSDoc and emit d.ts files https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html. Good news: We won't need an option because we can emit both
@sbking are you open for a PR against the EDIT: If parallel |
I can not enable
allowJs
for my application because other build tooling (Remix + Vite) does not work well whenallowJs
is enabled. Is there any way to make Paraglide generate .ts files instead?The text was updated successfully, but these errors were encountered: