mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 13:01:22 +00:00
add: docs for typescript_type
This commit is contained in:
@ -26,12 +26,13 @@ pub struct TextStyle {
|
||||
#[wasm_bindgen]
|
||||
impl TextStyle {
|
||||
#[wasm_bindgen(constructor)]
|
||||
pub fn new(_i: ITextStyle) {
|
||||
pub fn new(_i: ITextStyle) -> TextStyle {
|
||||
// parse JsValue
|
||||
TextStyle::default()
|
||||
}
|
||||
|
||||
pub fn optional_new(_i: Option<ITextStyle>) -> TextStyle {
|
||||
// parse JsValueo
|
||||
// parse JsValue
|
||||
TextStyle::default()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user