compileTemplate.d.ts 835 B

123456789101112131415161718192021222324
  1. import { VueTemplateCompiler, VueTemplateCompilerOptions, ErrorWithRange } from './types';
  2. import { AssetURLOptions } from './templateCompilerModules/assetUrl';
  3. export interface TemplateCompileOptions {
  4. source: string;
  5. filename: string;
  6. compiler: VueTemplateCompiler;
  7. compilerOptions?: VueTemplateCompilerOptions;
  8. transformAssetUrls?: AssetURLOptions | boolean;
  9. preprocessLang?: string;
  10. preprocessOptions?: any;
  11. transpileOptions?: any;
  12. isProduction?: boolean;
  13. isFunctional?: boolean;
  14. optimizeSSR?: boolean;
  15. prettify?: boolean;
  16. }
  17. export interface TemplateCompileResult {
  18. code: string;
  19. source: string;
  20. tips: (string | ErrorWithRange)[];
  21. errors: (string | ErrorWithRange)[];
  22. }
  23. export declare function compileTemplate(options: TemplateCompileOptions): TemplateCompileResult;