Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chores: Add Types for ES2021 #1337

Merged
merged 1 commit into from Oct 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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