We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fairly large feature I expect but it'd be awesome if you could pass a flag to clang++ to generate TypeScript declarations for the module.
clang++
e.g.
clang++ -target cheerp-wasm file.c -o file.js -cheerp-make-types=file.d.ts
To emit a file.d.ts looking something like:
file.d.ts
export type InstanciateOptions = { buffer: /* some typed array */, } | { absPath: string | URL, } export default function instanciate(options: InstanciateOptions?): Promise<{}>
(And for [jsexport]'d things, export types for those funcs)
[jsexport]
The text was updated successfully, but these errors were encountered:
Added in leaningtech/cheerp-compiler#162
Sorry, something went wrong.
No branches or pull requests
Fairly large feature I expect but it'd be awesome if you could pass a flag to
clang++
to generate TypeScript declarations for the module.e.g.
To emit a
file.d.ts
looking something like:(And for
[jsexport]
'd things, export types for those funcs)The text was updated successfully, but these errors were encountered: