my-idlers/node_modules/@vue/component-compiler-utils/dist/compileTemplate.d.ts
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

26 lines
950 B
TypeScript

import { VueTemplateCompiler, VueTemplateCompilerOptions, ErrorWithRange } from './types';
import { AssetURLOptions, TransformAssetUrlsOptions } from './templateCompilerModules/assetUrl';
export interface TemplateCompileOptions {
source: string;
filename: string;
compiler: VueTemplateCompiler;
compilerOptions?: VueTemplateCompilerOptions;
transformAssetUrls?: AssetURLOptions | boolean;
transformAssetUrlsOptions?: TransformAssetUrlsOptions;
preprocessLang?: string;
preprocessOptions?: any;
transpileOptions?: any;
isProduction?: boolean;
isFunctional?: boolean;
optimizeSSR?: boolean;
prettify?: boolean;
}
export interface TemplateCompileResult {
ast: Object | undefined;
code: string;
source: string;
tips: (string | ErrorWithRange)[];
errors: (string | ErrorWithRange)[];
}
export declare function compileTemplate(options: TemplateCompileOptions): TemplateCompileResult;