Skip to content

Commit

Permalink
remove alias from the type and undo changes in generated folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Behrang Yarahmadi committed Jan 18, 2019
1 parent 3e45d88 commit 1acd6a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions packages/babel-types/src/definitions/experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ import {
classMethodOrDeclareMethodCommon,
} from "./es2015";

defineType("Partial", {
defineType("ArgumentPlaceholder", {
visitor: ["argument"],
aliases: ["UnaryLike"],
fields: {
argument: {
validate: assertNodeType("Expression"),
validate: assertNodeType("ArgumentPlaceholder"),
},
},
});
Expand Down
3 changes: 1 addition & 2 deletions packages/babel-types/src/validators/generated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3219,8 +3219,7 @@ export function isExpression(node: Object, opts?: Object): boolean {
"BigIntLiteral" === nodeType ||
"TSAsExpression" === nodeType ||
"TSTypeAssertion" === nodeType ||
"TSNonNullExpression" === nodeType ||
"Partial" === nodeType
"TSNonNullExpression" === nodeType
) {
if (typeof opts === "undefined") {
return true;
Expand Down

0 comments on commit 1acd6a4

Please sign in to comment.