add: docs for typescript_type

This commit is contained in:
clearloop
2020-03-04 15:32:40 +08:00
parent 84f5fe2c00
commit 003dc45d76
3 changed files with 60 additions and 2 deletions

View File

@ -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()
}
}