|
1 |
| -/* tslint:disable */ |
2 |
| -/* eslint-disable */ |
3 |
| - |
4 | 1 | /* auto-generated by NAPI-RS */
|
| 2 | +/* eslint-disable */ |
5 | 3 |
|
6 |
| -export interface Diagnostic { |
7 |
| - level: string; |
8 |
| - message: string; |
9 |
| - span: any; |
10 |
| -} |
11 |
| -export interface TransformOutput { |
12 |
| - code: string; |
13 |
| - errors?: Array<Diagnostic>; |
14 |
| -} |
15 | 4 | export interface Attribute {
|
16 | 5 | namespace?: string;
|
17 | 6 | prefix?: string;
|
18 | 7 | name: string;
|
19 | 8 | value?: string;
|
20 | 9 | }
|
21 |
| -export interface Element { |
22 |
| - tagName: string; |
23 |
| - namespace: string; |
24 |
| - attributes: Array<Attribute>; |
25 |
| - isSelfClosing: boolean; |
26 |
| -} |
27 |
| -export function minify( |
28 |
| - code: Buffer, |
29 |
| - opts: Buffer, |
30 |
| - signal?: AbortSignal | undefined | null |
31 |
| -): Promise<TransformOutput>; |
32 |
| -export function minifyFragment( |
33 |
| - code: Buffer, |
34 |
| - opts: Buffer, |
35 |
| - signal?: AbortSignal | undefined | null |
36 |
| -): Promise<TransformOutput>; |
37 |
| -export function minifySync(code: Buffer, opts: Buffer): TransformOutput; |
38 |
| -export function minifyFragmentSync(code: Buffer, opts: Buffer): TransformOutput; |
| 10 | + |
39 | 11 | export interface Diagnostic {
|
40 | 12 | level: string;
|
41 | 13 | message: string;
|
42 | 14 | span: any;
|
43 | 15 | }
|
44 |
| -export interface TransformOutput { |
45 |
| - code: string; |
46 |
| - errors?: Array<Diagnostic>; |
47 |
| -} |
48 |
| -export interface Attribute { |
49 |
| - namespace?: string; |
50 |
| - prefix?: string; |
51 |
| - name: string; |
52 |
| - value?: string; |
53 |
| -} |
| 16 | + |
54 | 17 | export interface Element {
|
55 | 18 | tagName: string;
|
56 | 19 | namespace: string;
|
57 | 20 | attributes: Array<Attribute>;
|
58 | 21 | isSelfClosing: boolean;
|
59 | 22 | }
|
60 |
| -export function minify( |
| 23 | + |
| 24 | +export declare function minify( |
61 | 25 | code: Buffer,
|
62 | 26 | opts: Buffer,
|
63 | 27 | signal?: AbortSignal | undefined | null
|
64 | 28 | ): Promise<TransformOutput>;
|
65 |
| -export function minifyFragment( |
| 29 | + |
| 30 | +export declare function minifyFragment( |
66 | 31 | code: Buffer,
|
67 | 32 | opts: Buffer,
|
68 | 33 | signal?: AbortSignal | undefined | null
|
69 | 34 | ): Promise<TransformOutput>;
|
70 |
| -export function minifySync(code: Buffer, opts: Buffer): TransformOutput; |
71 |
| -export function minifyFragmentSync(code: Buffer, opts: Buffer): TransformOutput; |
| 35 | + |
| 36 | +export declare function minifyFragmentSync( |
| 37 | + code: Buffer, |
| 38 | + opts: Buffer |
| 39 | +): TransformOutput; |
| 40 | + |
| 41 | +export declare function minifySync(code: Buffer, opts: Buffer): TransformOutput; |
| 42 | + |
| 43 | +export interface TransformOutput { |
| 44 | + code: string; |
| 45 | + errors?: Array<Diagnostic>; |
| 46 | +} |
0 commit comments