mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Prettier: Add parser babel and babel-flow
This commit is contained in:
6
types/prettier/index.d.ts
vendored
6
types/prettier/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user