Add allowUndeclaredExports option to typings. (#10263)
This should have been included in https://github.com/babel/babel/pull/9864 but was not.
This commit is contained in:
parent
fced5cea43
commit
1e7ed5c461
@ -36,6 +36,12 @@ export interface ParserOptions {
|
|||||||
|
|
||||||
allowSuperOutsideMethod?: boolean;
|
allowSuperOutsideMethod?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* By default, exported identifiers must refer to a declared variable.
|
||||||
|
* Set this to true to allow export statements to reference undeclared variables.
|
||||||
|
*/
|
||||||
|
allowUndeclaredExports?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicate the mode the code should be parsed in.
|
* Indicate the mode the code should be parsed in.
|
||||||
* Can be one of "script", "module", or "unambiguous". Defaults to "script".
|
* Can be one of "script", "module", or "unambiguous". Defaults to "script".
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user