wasm-interfacegen-macro 0.1.0

Definition of the JsInterface procedural derive macro, an internal dependency of wasm-interfacegen
Documentation
1
2
3
4
5
6
7
8
use quote::quote;

pub fn array_types() -> [String;2] {
    [
        quote! { Box<[wasm_bindgen::prelude::JsValue]> }.to_string(),
        quote! { Option<Box<[wasm_bindgen::prelude::JsValue]>> }.to_string()
    ]
}