@@ -61,11 +61,11 @@ extern "C" {
6161 #[ wasm_bindgen( method, catch) ]
6262 pub fn column_style_controls ( this : & JsPerspectiveViewerPlugin , view_type : & str , group : Option < & str > ) -> ApiResult < JsValue > ;
6363
64- #[ wasm_bindgen( method) ]
65- pub fn save ( this : & JsPerspectiveViewerPlugin ) -> JsValue ;
64+ #[ wasm_bindgen( method, catch ) ]
65+ pub fn save ( this : & JsPerspectiveViewerPlugin ) -> ApiResult < JsValue > ;
6666
67- #[ wasm_bindgen( method, js_name=restore) ]
68- pub fn _restore ( this : & JsPerspectiveViewerPlugin , token : & JsValue , columns_config : & JsValue ) ;
67+ #[ wasm_bindgen( method, js_name=restore, catch ) ]
68+ pub fn _restore ( this : & JsPerspectiveViewerPlugin , token : & JsValue , columns_config : & JsValue ) -> ApiResult < ( ) > ;
6969
7070 #[ wasm_bindgen( method) ]
7171 pub fn delete ( this : & JsPerspectiveViewerPlugin ) ;
@@ -103,7 +103,11 @@ extern "C" {
103103}
104104
105105impl JsPerspectiveViewerPlugin {
106- pub fn restore ( & self , token : & JsValue , columns_config : Option < & ColumnConfigMap > ) {
106+ pub fn restore (
107+ & self ,
108+ token : & JsValue ,
109+ columns_config : Option < & ColumnConfigMap > ,
110+ ) -> ApiResult < ( ) > {
107111 let columns_config = JsValue :: from_serde_ext ( & columns_config) . unwrap ( ) ;
108112 self . _restore ( token, & columns_config)
109113 }
0 commit comments