2024-05-18 03:23:06 +03:00
|
|
|
/* auto-generated by NAPI-RS */
|
|
|
|
/* eslint-disable */
|
|
|
|
|
|
|
|
export class Compiler {
|
2024-08-26 02:42:53 +03:00
|
|
|
constructor()
|
2024-05-18 03:23:06 +03:00
|
|
|
}
|
2024-08-26 02:42:53 +03:00
|
|
|
export type JsCompiler = Compiler
|
|
|
|
|
|
|
|
export declare function bundle(confItems: Buffer, signal?: AbortSignal | undefined | null): Promise<{ [index: string]: { code: string, map?: string } }>
|
|
|
|
|
|
|
|
export declare function getTargetTriple(): string
|
|
|
|
|
|
|
|
export declare function initCustomTraceSubscriber(traceOutFilePath?: string | undefined | null): void
|
|
|
|
|
|
|
|
export declare function minify(code: Buffer, opts: Buffer, extras: NapiMinifyExtra, signal?: AbortSignal | undefined | null): Promise<TransformOutput>
|
|
|
|
|
|
|
|
export declare function minifySync(code: Buffer, opts: Buffer, extras: NapiMinifyExtra): TransformOutput
|
|
|
|
|
|
|
|
export interface NapiMinifyExtra {
|
|
|
|
mangleNameCache?: object
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare function newMangleNameCache(): object
|
|
|
|
|
|
|
|
export declare function parse(src: string, options: Buffer, filename?: string | undefined | null, signal?: AbortSignal | undefined | null): Promise<string>
|
|
|
|
|
|
|
|
export declare function parseFile(path: string, options: Buffer, signal?: AbortSignal | undefined | null): Promise<string>
|
|
|
|
|
|
|
|
export declare function parseFileSync(path: string, opts: Buffer): string
|
|
|
|
|
|
|
|
export declare function parseSync(src: string, opts: Buffer, filename?: string | undefined | null): string
|
|
|
|
|
|
|
|
export declare function print(programJson: string, options: Buffer, signal?: AbortSignal | undefined | null): Promise<TransformOutput>
|
|
|
|
|
|
|
|
export declare function printSync(program: string, options: Buffer): TransformOutput
|
|
|
|
|
|
|
|
export declare function transform(src: string, isModule: boolean, options: Buffer, signal?: AbortSignal | undefined | null): Promise<TransformOutput>
|
|
|
|
|
|
|
|
export declare function transformFile(src: string, isModule: boolean, options: Buffer, signal?: AbortSignal | undefined | null): Promise<TransformOutput>
|
|
|
|
|
|
|
|
export declare function transformFileSync(s: string, isModule: boolean, opts: Buffer): TransformOutput
|
2024-05-18 03:23:06 +03:00
|
|
|
|
|
|
|
export interface TransformOutput {
|
2024-08-26 02:42:53 +03:00
|
|
|
code: string
|
|
|
|
map?: string
|
|
|
|
output?: string
|
2024-05-18 03:23:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/** Hack for `Type Generation` */
|
|
|
|
export interface TransformOutput {
|
2024-08-26 02:42:53 +03:00
|
|
|
code: string
|
|
|
|
map?: string
|
2024-05-18 03:23:06 +03:00
|
|
|
}
|
|
|
|
|
2024-08-26 02:42:53 +03:00
|
|
|
export declare function transformSync(s: string, isModule: boolean, opts: Buffer): TransformOutput
|
|
|
|
|