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:
Brian Donovan 2019-07-25 00:53:56 -07:00 committed by Nicolò Ribaudo
parent fced5cea43
commit 1e7ed5c461

View File

@ -36,6 +36,12 @@ export interface ParserOptions {
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.
* Can be one of "script", "module", or "unambiguous". Defaults to "script".