We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f064fc commit ff4fe58Copy full SHA for ff4fe58
wasm/src/lib.rs
@@ -76,7 +76,7 @@ impl TryFrom<Options> for rust_inline::InlineOptions<'_> {
76
}
77
78
79
-#[wasm_bindgen]
+#[wasm_bindgen(skip_typescript)]
80
pub fn inline(
81
html: &str,
82
options: &JsValue,
@@ -89,3 +89,16 @@ pub fn inline(
89
let inliner = rust_inline::CSSInliner::new(options.try_into()?);
90
Ok(inliner.inline(html).map_err(InlineErrorWrapper)?)
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
+"#;
0 commit comments