|
2 | 2 | /* eslint-disable */ |
3 | 3 | export class Element { |
4 | 4 | free(): void; |
5 | | - /** |
6 | | - * @param {string} content |
7 | | - * @param {any | undefined} [content_type] |
8 | | - */ |
9 | | - before(content: string, content_type?: any): void; |
10 | | - /** |
11 | | - * @param {string} content |
12 | | - * @param {any | undefined} [content_type] |
13 | | - */ |
14 | | - after(content: string, content_type?: any): void; |
15 | | - /** |
16 | | - * @param {string} content |
17 | | - * @param {any | undefined} [content_type] |
18 | | - */ |
19 | | - replace(content: string, content_type?: any): void; |
20 | | - remove(): void; |
21 | | - /** |
22 | | - * @param {string} name |
23 | | - * @returns {any} |
24 | | - */ |
25 | | - getAttribute(name: string): any; |
26 | | - /** |
27 | | - * @param {string} name |
28 | | - * @returns {boolean} |
29 | | - */ |
30 | | - hasAttribute(name: string): boolean; |
31 | 5 | /** |
32 | 6 | * @param {string} name |
33 | 7 | * @param {string} value |
34 | 8 | */ |
35 | 9 | setAttribute(name: string, value: string): void; |
36 | | - /** |
37 | | - * @param {string} name |
38 | | - */ |
39 | | - removeAttribute(name: string): void; |
40 | | - /** |
41 | | - * @param {string} content |
42 | | - * @param {any | undefined} [content_type] |
43 | | - */ |
44 | | - prepend(content: string, content_type?: any): void; |
45 | | - /** |
46 | | - * @param {string} content |
47 | | - * @param {any | undefined} [content_type] |
48 | | - */ |
49 | | - append(content: string, content_type?: any): void; |
50 | | - /** |
51 | | - * @param {string} content |
52 | | - * @param {any | undefined} [content_type] |
53 | | - */ |
54 | | - setInnerContent(content: string, content_type?: any): void; |
55 | | - removeAndKeepContent(): void; |
56 | | - readonly attributes: any; |
57 | | - readonly namespaceURI: any; |
58 | | - readonly removed: boolean; |
59 | | - tagName: string; |
60 | 10 | } |
61 | 11 | export class HTMLRewriter { |
62 | 12 | free(): void; |
|
0 commit comments