We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
#[wasm_bindgen] pub enum Foo { A = 1, B = 2, } #[wasm_bindgen] pub async fn foo(foo: Foo) -> Result<(), ()> { // ... }
Produces this TypeScript:
export enum Foo { A = 1, B = 2, } export function foo(foo: number): void
I expected the function to be exported as:
export function foo(foo: Foo): void
The text was updated successfully, but these errors were encountered:
Looks like a duplicate to #2154
Sorry, something went wrong.
Duplicate of #2154.
No branches or pull requests
Describe the Bug
Produces this TypeScript:
Expected Behavior
I expected the function to be exported as:
The text was updated successfully, but these errors were encountered: