Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit caaf67e

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Bump to latest flow-bin
Reviewed By: jbrown215 Differential Revision: D46380460 fbshipit-source-id: 045ce59b9577ee20f4e9e20bb062638c33ada1e7
1 parent 8bb0e9a commit caaf67e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+579
-474
lines changed

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ untyped-import
7373
untyped-type-import
7474

7575
[version]
76-
^0.185.1
76+
^0.207.0

flow-types/nonfb/libdef/babelTypes.js

Lines changed: 156 additions & 156 deletions
Large diffs are not rendered by default.

flow-types/nonfb/libdef/flow-typed/babelTypeShims.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,33 +52,35 @@ declare module '@babel/core' {
5252

5353
declare type NodePathOf<BabelNode> = NodePath<BabelNode>;
5454

55-
declare type BabelTransform = {
55+
declare type BabelTransform = $ReadOnly<{
5656
CallExpression?: (path: NodePathOf<BabelNodeCallExpression>) => void,
5757
JSXElement?: (path: NodePathOf<BabelNodeJSXElement>) => void,
5858
JSXElement?: (path: NodePathOf<BabelNodeJSXElement>) => void,
5959
StringLiteral?: (path: NodePathOf<BabelNodeStringLiteral>) => void,
60-
};
60+
...
61+
}>;
6162

62-
declare type BabelTransformPlugin = {
63+
declare type BabelTransformPlugin = $ReadOnly<{
6364
pre: () => void,
6465
name: string,
6566
visitor: BabelTransform,
66-
};
67+
}>;
6768

68-
declare type BabelPluginList = Array<
69-
string | [string] | [string, {[option: string]: mixed}],
69+
declare type BabelPluginList = $ReadOnlyArray<
70+
string | [string] | [string, {+[option: string]: mixed}],
7071
>;
7172

7273
declare type BabelPresetList = BabelPluginList;
7374

7475
declare function transformSync(
7576
code: string,
76-
opts: {
77+
opts: $ReadOnly<{
7778
ast?: boolean,
7879
code?: boolean,
7980
filename?: ?string,
8081
plugins: BabelPluginList,
8182
sourceType?: string,
82-
},
83+
...
84+
}>,
8385
): void;
8486
}

0 commit comments

Comments
 (0)