mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
babylon.parse return File not Node (#16163)
This commit is contained in:
committed by
Mohamed Hegazy
parent
468f9a4aed
commit
5fcbda7c01
7
types/babylon/index.d.ts
vendored
7
types/babylon/index.d.ts
vendored
@@ -5,10 +5,11 @@
|
||||
|
||||
/// <reference types="babel-types" />
|
||||
|
||||
import * as t from 'babel-types';
|
||||
type Node = t.Node;
|
||||
import { File, Expression } from 'babel-types';
|
||||
|
||||
export function parse(code: string, opts?: BabylonOptions): Node;
|
||||
export function parse(code: string, opts?: BabylonOptions): File;
|
||||
|
||||
export function parseExpression(input: string, options?: BabylonOptions): Expression;
|
||||
|
||||
export interface BabylonOptions {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user