fix flow for babylon

This commit is contained in:
Bradley Farias 2016-01-19 13:01:26 -06:00
parent d425927ff1
commit b6f5b6ab11

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