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:
Brian Donovan
2017-03-05 13:17:55 -08:00
parent 14cfa9f41c
commit 9fe2a2f8e8

20
babylon/index.d.ts vendored
View File

@@ -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';