From 9fe2a2f8e85270077d94eaaa12affcaa6028efe6 Mon Sep 17 00:00:00 2001 From: Brian Donovan Date: Sun, 5 Mar 2017 13:17:55 -0800 Subject: [PATCH] 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 --- babylon/index.d.ts | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/babylon/index.d.ts b/babylon/index.d.ts index 45b929264d..4400a8f1a0 100644 --- a/babylon/index.d.ts +++ b/babylon/index.d.ts @@ -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 // 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';