Skip to content

Commit 234dc28

Browse files
committed
chore(javascript): Update TS interface
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent 0bfbd6f commit 234dc28

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

bindings/javascript/index.d.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
/* tslint:disable */
1+
/* auto-generated by NAPI-RS */
22
/* eslint-disable */
3+
/** Inline CSS styles from <style> tags to matching elements in the HTML tree and return a string. */
4+
export declare function inline(html: string, options?: Options | undefined | null): string
35

4-
/* auto-generated by NAPI-RS */
6+
/** Inline CSS styles into an HTML fragment. */
7+
export declare function inlineFragment(html: string, css: string, options?: Options | undefined | null): string
58

6-
export interface StylesheetCache {
7-
/** Cache size. */
8-
size: number
9-
}
109
export interface Options {
1110
/**
1211
* Whether to inline CSS from "style" tags.
@@ -19,6 +18,8 @@ export interface Options {
1918
keepStyleTags?: boolean
2019
/** Keep "link" tags after inlining. */
2120
keepLinkTags?: boolean
21+
/** Keep "at-rules" after inlining. */
22+
keepAtRules?: boolean
2223
/** Used for loading external stylesheets via relative URLs. */
2324
baseUrl?: string
2425
/** Whether remote stylesheets should be loaded or not. */
@@ -33,9 +34,11 @@ export interface Options {
3334
*/
3435
preallocateNodeCapacity?: number
3536
}
36-
/** Inline CSS styles from <style> tags to matching elements in the HTML tree and return a string. */
37-
export declare function inline(html: string, options?: Options | undefined | null): string
38-
/** Inline CSS styles into an HTML fragment. */
39-
export declare function inlineFragment(html: string, css: string, options?: Options | undefined | null): string
37+
38+
export interface StylesheetCache {
39+
/** Cache size. */
40+
size: number
41+
}
42+
4043
/** Get the package version. */
4144
export declare function version(): string

0 commit comments

Comments
 (0)