Prettier: Add parser babel and babel-flow

This commit is contained in:
Nico Jansen
2019-02-08 10:24:17 +01:00
parent 510f81374c
commit 276c76e22e

View File

@@ -1,4 +1,4 @@
// Type definitions for prettier 1.15
// Type definitions for prettier 1.16
// Project: https://github.com/prettier/prettier
// Definitions by: Ika <https://github.com/ikatyang>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -21,7 +21,9 @@ export interface FastPath<T = any> {
export type BuiltInParser = (text: string, options?: any) => AST;
export type BuiltInParserName =
| 'babylon'
| 'babylon' // deprecated
| 'babel'
| 'babel-flow'
| 'flow'
| 'typescript'
| 'postcss' // deprecated