mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Update type definitions for bablyon.
The list of available plugins changed, with `estree` and `dynamicImport` being added and `asyncFunctions`, `exponentiationOperator`, and `trailingFunctionCommas` being removed. - [v6.16.0](https://github.com/babel/babylon/blob/v6.16.1/CHANGELOG.md#6160-2017-02-23): `estree` added - [v6.12.0](https://github.com/babel/babylon/blob/v6.16.1/CHANGELOG.md#v6120-2016-10-14): `dynamicImport` added - [v6.9.1](https://github.com/babel/babylon/blob/v6.16.1/CHANGELOG.md#691-2016-08-23): `asyncFunctions`, `exponentiationOperator`, `trailingFunctionCommas` removed
This commit is contained in:
20
babylon/index.d.ts
vendored
20
babylon/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for babylon v6.7
|
||||
// Type definitions for babylon v6.16.1
|
||||
// Project: https://github.com/babel/babylon
|
||||
// Definitions by: Troy Gerwien <https://github.com/yortus>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -41,7 +41,17 @@ export interface BabylonOptions {
|
||||
plugins?: PluginName[];
|
||||
}
|
||||
|
||||
export type PluginName = 'jsx' | 'flow' | 'asyncFunctions' | 'classConstructorCall' | 'doExpressions'
|
||||
| 'trailingFunctionCommas' | 'objectRestSpread' | 'decorators' | 'classProperties' | 'exportExtensions'
|
||||
| 'exponentiationOperator' | 'asyncGenerators' | 'functionBind' | 'functionSent' | '*';
|
||||
|
||||
export type PluginName =
|
||||
'estree' |
|
||||
'jsx' |
|
||||
'flow' |
|
||||
'classConstructorCall' |
|
||||
'doExpressions' |
|
||||
'objectRestSpread' |
|
||||
'decorators' |
|
||||
'classProperties' |
|
||||
'exportExtensions' |
|
||||
'asyncGenerators' |
|
||||
'functionBind' |
|
||||
'functionSent' |
|
||||
'dynamicImport';
|
||||
|
||||
Reference in New Issue
Block a user