File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
packages/router-utils/src Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,8 @@ export type ParseAstOptions = ParserOptions & {
88 code : string
99}
1010
11- export function parseAst ( {
12- code,
13- ...opts
14- } : ParseAstOptions ) : ParseResult < _babel_types . File > {
11+ export type ParseAstResult = ParseResult < _babel_types . File >
12+ export function parseAst ( { code, ...opts } : ParseAstOptions ) : ParseAstResult {
1513 return parse ( code , {
1614 plugins : [ 'jsx' , 'typescript' , 'explicitResourceManagement' ] ,
1715 sourceType : 'module' ,
Original file line number Diff line number Diff line change 11export { parseAst , generateFromAst } from './ast'
2- export type { ParseAstOptions , GeneratorResult } from './ast'
2+ export type { ParseAstOptions , ParseAstResult , GeneratorResult } from './ast'
33export { logDiff } from './logger'
44
55export { copyFilesPlugin } from './copy-files-plugin'
You can’t perform that action at this time.
0 commit comments