Skip to content

Conversation

clearloop
Copy link
Contributor

Addressed issue #1988

Rust test file:

use wasm_bindgen::prelude::*;

#[wasm_bindgen]
pub struct Fields {
    pub hallo: Option<bool>,
    pub spaceboy: bool,
}

Typescript test file:

import * as wbg from '../pkg/typescript_tests';

const fields: wbg.Fields = { spaceboy: true, free: () => { } };

@clearloop
Copy link
Contributor Author

Sorry for the late, I got myself some rest last week, with my project blown up...

The latest version has no String checks, I think I probably made it, pleeeaaase check out it!

@alexcrichton alexcrichton merged commit b619070 into wasm-bindgen:master Feb 18, 2020
@alexcrichton
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants