Skip to content

Commit d75833e

Browse files
committed
build
1 parent a7bc702 commit d75833e

File tree

3 files changed

+321
-283
lines changed

3 files changed

+321
-283
lines changed

packages/html/binding.d.ts

Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,46 @@
1-
/* tslint:disable */
2-
/* eslint-disable */
3-
41
/* auto-generated by NAPI-RS */
2+
/* eslint-disable */
53

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-
}
154
export interface Attribute {
165
namespace?: string;
176
prefix?: string;
187
name: string;
198
value?: string;
209
}
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+
3911
export interface Diagnostic {
4012
level: string;
4113
message: string;
4214
span: any;
4315
}
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+
5417
export interface Element {
5518
tagName: string;
5619
namespace: string;
5720
attributes: Array<Attribute>;
5821
isSelfClosing: boolean;
5922
}
60-
export function minify(
23+
24+
export declare function minify(
6125
code: Buffer,
6226
opts: Buffer,
6327
signal?: AbortSignal | undefined | null
6428
): Promise<TransformOutput>;
65-
export function minifyFragment(
29+
30+
export declare function minifyFragment(
6631
code: Buffer,
6732
opts: Buffer,
6833
signal?: AbortSignal | undefined | null
6934
): 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

Comments
 (0)