Merge pull request #3284 from bmeck/babylon-flow

fix flow for babylon
This commit is contained in:
Henry Zhu 2016-01-19 14:23:29 -05:00
commit b825e0c152

View File

@ -1,7 +1,15 @@
/* @flow */
// A second optional argument can be given to further configure
// the parser process. These options are recognized:
export const defaultOptions = {
export const defaultOptions: {
sourceType: string,
allowReturnOutsideFunction: boolean,
allowImportExportEverywhere: boolean,
allowSuperOutsideMethod: boolean,
plugins: Array<string>,
strictMode: any
} = {
// Source type ("script" or "module") for different semantics
sourceType: "script",
// When enabled, a return at the top level is not considered an