Skip to content

Commit

Permalink
binding
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 16, 2024
1 parent afc01ac commit e2fe450
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 138 deletions.
77 changes: 59 additions & 18 deletions packages/html/binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,68 @@
/* auto-generated by NAPI-RS */

export interface Diagnostic {
level: string
message: string
span: any
level: string;
message: string;
span: any;
}
export interface TransformOutput {
code: string
errors?: Array<Diagnostic>
code: string;
errors?: Array<Diagnostic>;
}
export interface Attribute {
namespace?: string
prefix?: string
name: string
value?: string
namespace?: string;
prefix?: string;
name: string;
value?: string;
}
export interface Element {
tagName: string
namespace: string
attributes: Array<Attribute>
isSelfClosing: boolean
}
export function minify(code: Buffer, opts: Buffer, signal?: AbortSignal | undefined | null): Promise<TransformOutput>
export function minifyFragment(code: Buffer, opts: Buffer, signal?: AbortSignal | undefined | null): Promise<TransformOutput>
export function minifySync(code: Buffer, opts: Buffer): TransformOutput
export function minifyFragmentSync(code: Buffer, opts: Buffer): TransformOutput
tagName: string;
namespace: string;
attributes: Array<Attribute>;
isSelfClosing: boolean;
}
export function minify(
code: Buffer,
opts: Buffer,
signal?: AbortSignal | undefined | null
): Promise<TransformOutput>;
export function minifyFragment(
code: Buffer,
opts: Buffer,
signal?: AbortSignal | undefined | null
): Promise<TransformOutput>;
export function minifySync(code: Buffer, opts: Buffer): TransformOutput;
export function minifyFragmentSync(code: Buffer, opts: Buffer): TransformOutput;
export interface Diagnostic {
level: string;
message: string;
span: any;
}
export interface TransformOutput {
code: string;
errors?: Array<Diagnostic>;
}
export interface Attribute {
namespace?: string;
prefix?: string;
name: string;
value?: string;
}
export interface Element {
tagName: string;
namespace: string;
attributes: Array<Attribute>;
isSelfClosing: boolean;
}
export function minify(
code: Buffer,
opts: Buffer,
signal?: AbortSignal | undefined | null
): Promise<TransformOutput>;
export function minifyFragment(
code: Buffer,
opts: Buffer,
signal?: AbortSignal | undefined | null
): Promise<TransformOutput>;
export function minifySync(code: Buffer, opts: Buffer): TransformOutput;
export function minifyFragmentSync(code: Buffer, opts: Buffer): TransformOutput;
Loading

0 comments on commit e2fe450

Please sign in to comment.