Skip to content

Commit

Permalink
Chores: Add Types for ES2021 (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Oct 18, 2020
1 parent b75d312 commit 2a3294d
Showing 1 changed file with 48 additions and 40 deletions.
88 changes: 48 additions & 40 deletions typings/eslint-plugin-vue/util-types/ast/es-ast.ts
Expand Up @@ -351,68 +351,76 @@ export interface SequenceExpression extends HasParentNode {
type: 'SequenceExpression'
expressions: Expression[]
}
export type UnaryOperator = '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete'
export interface UnaryExpression extends HasParentNode {
type: 'UnaryExpression'
operator: '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete'
operator: UnaryOperator
prefix: boolean
argument: Expression
}
export type BinaryOperator =
| '=='
| '!='
| '==='
| '!=='
| '<'
| '<='
| '>'
| '>='
| '<<'
| '>>'
| '>>>'
| '+'
| '-'
| '*'
| '/'
| '%'
| '|'
| '^'
| '&'
| 'in'
| 'instanceof'
| '**'
export interface BinaryExpression extends HasParentNode {
type: 'BinaryExpression'
operator:
| '=='
| '!='
| '==='
| '!=='
| '<'
| '<='
| '>'
| '>='
| '<<'
| '>>'
| '>>>'
| '+'
| '-'
| '*'
| '/'
| '%'
| '**'
| '|'
| '^'
| '&'
| 'in'
| 'instanceof'
operator: BinaryOperator
left: Expression
right: Expression
}
export type AssignmentOperator =
| '='
| '+='
| '-='
| '*='
| '/='
| '%='
| '<<='
| '>>='
| '>>>='
| '|='
| '^='
| '&='
| '**='
| '||='
| '&&='
| '??='
export interface AssignmentExpression extends HasParentNode {
type: 'AssignmentExpression'
operator:
| '='
| '+='
| '-='
| '*='
| '/='
| '%='
| '**='
| '<<='
| '>>='
| '>>>='
| '|='
| '^='
| '&='
operator: AssignmentOperator
left: Pattern
right: Expression
}
export type UpdateOperator = '++' | '--'
export interface UpdateExpression extends HasParentNode {
type: 'UpdateExpression'
operator: '++' | '--'
operator: UpdateOperator
argument: Expression
prefix: boolean
}
export type LogicalOperator = '||' | '&&' | '??'
export interface LogicalExpression extends HasParentNode {
type: 'LogicalExpression'
operator: '||' | '&&' | '??'
operator: LogicalOperator
left: Expression
right: Expression
}
Expand Down

0 comments on commit 2a3294d

Please sign in to comment.