Skip to content

Commit

Permalink
fix flow types for "empty" validators
Browse files Browse the repository at this point in the history
  • Loading branch information
zxbodya committed Jun 8, 2020
1 parent f61788e commit 7470c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/babel-types/src/definitions/core.js
Expand Up @@ -285,7 +285,7 @@ defineType("File", {
},
tokens: {
// todo(ts): add Token type
validate: assertEach(Object.assign(() => true, { type: "any" })),
validate: assertEach(Object.assign(() => {}, { type: "any" })),
optional: true,
},
},
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-types/src/definitions/experimental.js
Expand Up @@ -32,12 +32,12 @@ defineType("BindExpression", {
fields: !process.env.BABEL_TYPES_8_BREAKING
? {
object: {
validate: Object.assign(() => true, {
validate: Object.assign(() => {}, {
oneOfNodeTypes: ["Expression"],
}),
},
callee: {
validate: Object.assign(() => true, {
validate: Object.assign(() => {}, {
oneOfNodeTypes: ["Expression"],
}),
},
Expand Down

0 comments on commit 7470c76

Please sign in to comment.