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 typings for types using ducktor #1

Open
DusterTheFirst opened this issue Jul 21, 2023 · 1 comment
Open

Generate typings for types using ducktor #1

DusterTheFirst opened this issue Jul 21, 2023 · 1 comment

Comments

@DusterTheFirst
Copy link

One of the important pieces that wasm-bindgen provides is the generated typescript declaration file that describes the public API of the generated bindings. If I understand correctly,when using ducktor in a public facing API, the types will just show up as JsValues and all type information will be lost. So even though you can pass any object with the same fields, you would not get typechecking for those objects.

@ranile
Copy link
Owner

ranile commented Sep 8, 2023

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