updated ParsePlugin type definition (#10259)

* added 'placeholders', 'logicalAssignment', 'partialApplication' to the ParserPlugin type. closes #10186

* put the ParserPlugin names in alphabetical order
This commit is contained in:
Letladi Sebesho 2019-07-26 10:22:23 +02:00 committed by Nicolò Ribaudo
parent 4d30379d36
commit f160522ab0

View File

@ -95,32 +95,35 @@ export interface ParserOptions {
} }
export type ParserPlugin = export type ParserPlugin =
'estree' | 'asyncGenerators' |
'jsx' | 'bigInt' |
'flow' | 'classPrivateMethods' |
'flowComments' | 'classPrivateProperties' |
'typescript' | 'classProperties' |
'doExpressions' |
'objectRestSpread' |
'decorators' | 'decorators' |
'decorators-legacy' | 'decorators-legacy' |
'classProperties' | 'doExpressions' |
'classPrivateProperties' | 'dynamicImport' |
'classPrivateMethods' | 'estree' |
'exportDefaultFrom' | 'exportDefaultFrom' |
'exportNamespaceFrom' | 'exportNamespaceFrom' |
'asyncGenerators' | 'flow' |
'flowComments' |
'functionBind' | 'functionBind' |
'functionSent' | 'functionSent' |
'dynamicImport' |
'numericSeparator' |
'optionalChaining' |
'importMeta' | 'importMeta' |
'bigInt' | 'jsx' |
'optionalCatchBinding' | 'logicalAssignment' |
'throwExpressions' |
'pipelineOperator' |
'nullishCoalescingOperator' | 'nullishCoalescingOperator' |
'numericSeparator' |
'objectRestSpread' |
'optionalCatchBinding' |
'optionalChaining' |
'partialApplication' |
'pipelineOperator' |
'placeholders' |
'throwExpressions' |
'typescript' |
ParserPluginWithOptions; ParserPluginWithOptions;
export type ParserPluginWithOptions = export type ParserPluginWithOptions =