Add `optionalChaining` as a valid babylon plugin option to flow typing

Reviewed By: rafeca

Differential Revision: D7828243

fbshipit-source-id: 8b3cbaa8efb0f91263b3b09cbe012f8a5d8bfdbe
This commit is contained in:
Peter van der Zee 2018-05-02 07:37:33 -07:00 committed by Facebook Github Bot
parent f64ed1369e
commit 7ab8d08f89
1 changed files with 9 additions and 8 deletions

View File

@ -26,17 +26,18 @@ type BabylonOptions = {
sourceType?: 'script' | 'module',
sourceFilename?: 'string',
plugins?: Array<
| 'jsx'
| 'flow'
| 'doExpressions'
| 'objectRestSpread'
| 'decorators'
| 'classProperties'
| 'exportExtensions'
| 'asyncGenerators'
| 'classProperties'
| 'decorators'
| 'doExpressions'
| 'dynamicImport'
| 'exportExtensions'
| 'flow'
| 'functionBind'
| 'functionSent'
| 'dynamicImport',
| 'jsx'
| 'objectRestSpread'
| 'optionalChaining',
>,
};