parse.d.ts 503 B

12345678910111213
  1. import { ElementNode, RootNode } from '@vue/compiler-core';
  2. export declare function parseVueCode(code: string, isNVue?: boolean): {
  3. code: string;
  4. files?: undefined;
  5. errors?: undefined;
  6. } | {
  7. code: string;
  8. files: string[];
  9. errors: SyntaxError[];
  10. };
  11. export declare function parseBlockCode(ast: RootNode, code: string): string;
  12. export declare function parseWxsNodes(ast: RootNode): ElementNode[];
  13. export declare function parseWxsCode(wxsNodes: ElementNode[], code: string): string;