mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-24 02:01:35 +00:00
Add a #[wasm_bindgen(constructor)] attribute
This can be used for specifying that a static function should actually delegate to `new`
This commit is contained in:
@ -33,6 +33,7 @@ pub struct ImportStruct {
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct ImportStructFunction {
|
||||
pub method: bool,
|
||||
pub js_new: bool,
|
||||
pub function: Function,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user