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

Generate .d.ts files #894

Open
jespertheend opened this issue Mar 9, 2024 · 0 comments
Open

Generate .d.ts files #894

jespertheend opened this issue Mar 9, 2024 · 0 comments
Labels
effort: Moderate Will take a good amount of time and experience with the codebase, but feasible.
Milestone

Comments

@jespertheend
Copy link
Collaborator

It seems like deno doesn't have great support for parsing JSDoc types. This has several effects:

There's some documentation on how to do this here:
https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html

I tried running this in the jsrPackage directory:

npx -p typescript tsc mod.js --declaration --allowJs --emitDeclarationOnly --outDir .

I had reasonable success with this. Although it seems like it is incredibly slow right now. It's generating lots of large types for binarySerialization.js. We might have to convert binarySerializationTypes.ts to JSDoc as well (#791 related)

@jespertheend jespertheend added the effort: Moderate Will take a good amount of time and experience with the codebase, but feasible. label Mar 9, 2024
@jespertheend jespertheend added this to the backlog milestone Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: Moderate Will take a good amount of time and experience with the codebase, but feasible.
Projects
None yet
Development

No branches or pull requests

1 participant