plugins.d.ts 1.4 KB

123456789101112131415161718192021222324
  1. import type * as ts from 'typescript/lib/tsserverlibrary';
  2. import { VueCompilerOptions } from './types';
  3. import * as CompilerDOM from '@vue/compiler-dom';
  4. export declare function getDefaultVueLanguagePlugins(ts: typeof import('typescript/lib/tsserverlibrary'), compilerOptions: ts.CompilerOptions, vueCompilerOptions: VueCompilerOptions, codegenStack: boolean): {
  5. version: 1;
  6. name?: string | undefined;
  7. order?: number | undefined;
  8. requiredCompilerOptions?: string[] | undefined;
  9. parseSFC?(fileName: string, content: string): import("@vue/compiler-sfc").SFCParseResult | undefined;
  10. updateSFC?(oldResult: import("@vue/compiler-sfc").SFCParseResult, textChange: {
  11. start: number;
  12. end: number;
  13. newText: string;
  14. }): import("@vue/compiler-sfc").SFCParseResult | undefined;
  15. resolveTemplateCompilerOptions?(options: CompilerDOM.CompilerOptions): CompilerDOM.CompilerOptions;
  16. compileSFCTemplate?(lang: string, template: string, options: CompilerDOM.CompilerOptions): CompilerDOM.CodegenResult | undefined;
  17. updateSFCTemplate?(oldResult: CompilerDOM.CodegenResult, textChange: {
  18. start: number;
  19. end: number;
  20. newText: string;
  21. }): CompilerDOM.CodegenResult | undefined;
  22. getEmbeddedFileNames?(fileName: string, sfc: import("./types").Sfc): string[];
  23. resolveEmbeddedFile?(fileName: string, sfc: import("./types").Sfc, embeddedFile: import("./sourceFile").VueEmbeddedFile): void;
  24. }[];