Sha256: 7c20441c30e53376c9e72fcf82da0cc6e7462eec3087f9eb74f9682eaf7fb3e6
Contents?: true
Size: 540 Bytes
Versions: 30
Compression:
Stored size: 540 Bytes
Contents
#![deny(unused_variables)] use wasm_bindgen::prelude::*; struct A {} #[wasm_bindgen] impl A { #[wasm_bindgen(method)] pub fn foo() {} } #[wasm_bindgen] pub struct MyStruct { hello: String, } #[wasm_bindgen(getter, typescript_custom_section)] pub const FOO: &'static str = "FOO"; #[wasm_bindgen(readonly)] pub fn bar() {} #[wasm_bindgen(getter_with_clone, final)] impl MyStruct { #[wasm_bindgen(getter, typescript_type = "Thing[]")] pub fn hello(&self) -> String { self.hello.clone() } } fn main() {}
Version data entries
30 entries across 30 versions & 1 rubygems