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.
14 lines
513 B
14 lines
513 B
|
2 months ago
|
import { type ElementNode, type RootNode } from '@vue/compiler-core';
|
||
|
|
export declare function parseVueCode(code: string, isNVue?: boolean): {
|
||
|
|
code: string;
|
||
|
|
files?: undefined;
|
||
|
|
errors?: undefined;
|
||
|
|
} | {
|
||
|
|
code: string;
|
||
|
|
files: string[];
|
||
|
|
errors: SyntaxError[];
|
||
|
|
};
|
||
|
|
export declare function parseBlockCode(ast: RootNode, code: string): string;
|
||
|
|
export declare function parseWxsNodes(ast: RootNode): ElementNode[];
|
||
|
|
export declare function parseWxsCode(wxsNodes: ElementNode[], code: string): string;
|