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
wasm_bindgen --target web
use wasm_bindgen::prelude::*; #[wasm_bindgen] pub enum Hand { Left = "Left", Right = "Right", } #[wasm_bindgen] pub fn f(h: Hand) -> Hand { h }
export type Hand = 'Left' | 'Right'; export function f(h: Hand): Hand;
/** * @param {any} h * @returns {any} */ export function f(h: any): any;
wasm-bindgen 0.2.62
The text was updated successfully, but these errors were encountered:
I unfortunately don't have the time to implement a new feature like this, but a PR would be much appreciated!
Sorry, something went wrong.
export_type
Successfully merging a pull request may close this issue.
To reproduce
wasm_bindgen --target web
on the wasm produced from the following library:Expected Behavior
Actual Behavior
Version info
wasm-bindgen 0.2.62
The text was updated successfully, but these errors were encountered: