wangsongc-test
Version:
A ast parser for vue sfc
19 lines (18 loc) • 518 B
TypeScript
import type { SFCDescriptor } from './sfcUtils';
import * as templateParser from 'vue-eslint-parser';
declare type FileInfo = {
path: string;
source: string;
};
export default function vueSfcAstParse(fileInfo: FileInfo): {
templateAST?: undefined;
scriptAST?: undefined;
descriptor?: undefined;
jscodeshiftParser?: undefined;
} | {
templateAST: templateParser.AST.ESLintProgram;
scriptAST: any;
descriptor: SFCDescriptor;
jscodeshiftParser: any;
};
export {};