Update babel-parser.d.ts (#13575)
* Add moduleBlocks to ParserPlugin type * Add TypeScriptPluginOptions to ParserPluginWithOptions
This commit is contained in:
parent
dd942f92af
commit
22b2f4fc02
@ -131,6 +131,7 @@ export type ParserPlugin =
|
|||||||
| "jsx"
|
| "jsx"
|
||||||
| "logicalAssignment"
|
| "logicalAssignment"
|
||||||
| "importAssertions"
|
| "importAssertions"
|
||||||
|
| "moduleBlocks"
|
||||||
| "moduleStringNames"
|
| "moduleStringNames"
|
||||||
| "nullishCoalescingOperator"
|
| "nullishCoalescingOperator"
|
||||||
| "numericSeparator"
|
| "numericSeparator"
|
||||||
@ -151,7 +152,8 @@ export type ParserPluginWithOptions =
|
|||||||
| ["decorators", DecoratorsPluginOptions]
|
| ["decorators", DecoratorsPluginOptions]
|
||||||
| ["pipelineOperator", PipelineOperatorPluginOptions]
|
| ["pipelineOperator", PipelineOperatorPluginOptions]
|
||||||
| ["recordAndTuple", RecordAndTuplePluginOptions]
|
| ["recordAndTuple", RecordAndTuplePluginOptions]
|
||||||
| ["flow", FlowPluginOptions];
|
| ["flow", FlowPluginOptions]
|
||||||
|
| ["typescript", TypeScriptPluginOptions];
|
||||||
|
|
||||||
export interface DecoratorsPluginOptions {
|
export interface DecoratorsPluginOptions {
|
||||||
decoratorsBeforeExport?: boolean;
|
decoratorsBeforeExport?: boolean;
|
||||||
@ -169,6 +171,10 @@ export interface FlowPluginOptions {
|
|||||||
all?: boolean;
|
all?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface TypeScriptPluginOptions {
|
||||||
|
dts?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export const tokTypes: {
|
export const tokTypes: {
|
||||||
// todo(flow->ts) real token type
|
// todo(flow->ts) real token type
|
||||||
[name: string]: any;
|
[name: string]: any;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user