Skip to content

Commit

Permalink
Chores: Add private-fields-in-in AST to typings (#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jul 14, 2021
1 parent ee23408 commit 3baeec5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rules/require-valid-default-prop.js
Expand Up @@ -427,7 +427,7 @@ module.exports = {
}
}
},
onDefinePropsExit(node) {
onDefinePropsExit() {
scriptSetupPropsContexts.pop()
}
})
Expand Down
13 changes: 11 additions & 2 deletions typings/eslint-plugin-vue/util-types/ast/es-ast.ts
Expand Up @@ -441,12 +441,21 @@ export type BinaryOperator =
| 'in'
| 'instanceof'
| '**'
export interface BinaryExpression extends HasParentNode {
interface BinaryExpressionWithoutIn extends HasParentNode {
type: 'BinaryExpression'
operator: BinaryOperator
operator: Exclude<BinaryOperator, 'in'>
left: Expression
right: Expression
}
interface BinaryExpressionWithIn extends HasParentNode {
type: 'BinaryExpression'
operator: 'in'
left: Expression | PrivateIdentifier
right: Expression
}
export type BinaryExpression =
| BinaryExpressionWithoutIn
| BinaryExpressionWithIn
export type AssignmentOperator =
| '='
| '+='
Expand Down

0 comments on commit 3baeec5

Please sign in to comment.