File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ impl TryFrom<Options> for rust_inline::InlineOptions<'_> {
76
76
}
77
77
}
78
78
79
- #[ wasm_bindgen]
79
+ #[ wasm_bindgen( skip_typescript ) ]
80
80
pub fn inline (
81
81
html : & str ,
82
82
options : & JsValue ,
@@ -89,3 +89,16 @@ pub fn inline(
89
89
let inliner = rust_inline:: CSSInliner :: new ( options. try_into ( ) ?) ;
90
90
Ok ( inliner. inline ( html) . map_err ( InlineErrorWrapper ) ?)
91
91
}
92
+
93
+ #[ wasm_bindgen( typescript_custom_section) ]
94
+ const INLINE : & ' static str = r#"
95
+ interface InlineOptions {
96
+ inline_style_tags?: boolean,
97
+ remove_style_tags?: boolean,
98
+ base_url?: string,
99
+ load_remote_stylesheets?: boolean,
100
+ extra_css?: string,
101
+ }
102
+
103
+ export function inline(html: string, options?: InlineOptions): string;
104
+ "# ;
You can’t perform that action at this time.
0 commit comments