You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
835 B

4 years ago
  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;