Skip to content

Commit

Permalink
Add allowUndeclaredExports option to typings. (#10263)
Browse files Browse the repository at this point in the history
This should have been included in #9864 but was not.
  • Loading branch information
eventualbuddha authored and nicolo-ribaudo committed Jul 25, 2019
1 parent fced5ce commit 1e7ed5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/babel-parser/typings/babel-parser.d.ts
Expand Up @@ -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".
Expand Down

0 comments on commit 1e7ed5c

Please sign in to comment.