File tree Expand file tree Collapse file tree 1 file changed +48
-40
lines changed
typings/eslint-plugin-vue/util-types/ast Expand file tree Collapse file tree 1 file changed +48
-40
lines changed Original file line number Diff line number Diff line change @@ -351,68 +351,76 @@ export interface SequenceExpression extends HasParentNode {
351351 type : 'SequenceExpression'
352352 expressions : Expression [ ]
353353}
354+ export type UnaryOperator = '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete'
354355export interface UnaryExpression extends HasParentNode {
355356 type : 'UnaryExpression'
356- operator : '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete'
357+ operator : UnaryOperator
357358 prefix : boolean
358359 argument : Expression
359360}
361+ export type BinaryOperator =
362+ | '=='
363+ | '!='
364+ | '==='
365+ | '!=='
366+ | '<'
367+ | '<='
368+ | '>'
369+ | '>='
370+ | '<<'
371+ | '>>'
372+ | '>>>'
373+ | '+'
374+ | '-'
375+ | '*'
376+ | '/'
377+ | '%'
378+ | '|'
379+ | '^'
380+ | '&'
381+ | 'in'
382+ | 'instanceof'
383+ | '**'
360384export interface BinaryExpression extends HasParentNode {
361385 type : 'BinaryExpression'
362- operator :
363- | '=='
364- | '!='
365- | '==='
366- | '!=='
367- | '<'
368- | '<='
369- | '>'
370- | '>='
371- | '<<'
372- | '>>'
373- | '>>>'
374- | '+'
375- | '-'
376- | '*'
377- | '/'
378- | '%'
379- | '**'
380- | '|'
381- | '^'
382- | '&'
383- | 'in'
384- | 'instanceof'
386+ operator : BinaryOperator
385387 left : Expression
386388 right : Expression
387389}
390+ export type AssignmentOperator =
391+ | '='
392+ | '+='
393+ | '-='
394+ | '*='
395+ | '/='
396+ | '%='
397+ | '<<='
398+ | '>>='
399+ | '>>>='
400+ | '|='
401+ | '^='
402+ | '&='
403+ | '**='
404+ | '||='
405+ | '&&='
406+ | '??='
388407export interface AssignmentExpression extends HasParentNode {
389408 type : 'AssignmentExpression'
390- operator :
391- | '='
392- | '+='
393- | '-='
394- | '*='
395- | '/='
396- | '%='
397- | '**='
398- | '<<='
399- | '>>='
400- | '>>>='
401- | '|='
402- | '^='
403- | '&='
409+ operator : AssignmentOperator
404410 left : Pattern
405411 right : Expression
406412}
413+ export type UpdateOperator = '++' | '--'
407414export interface UpdateExpression extends HasParentNode {
408415 type : 'UpdateExpression'
409- operator : '++' | '--'
416+ operator : UpdateOperator
410417 argument : Expression
411418 prefix : boolean
412419}
420+ export type LogicalOperator = '||' | '&&' | '??'
413421export interface LogicalExpression extends HasParentNode {
414422 type : 'LogicalExpression'
415- operator : '||' | '&&' | '??'
423+ operator : LogicalOperator
416424 left : Expression
417425 right : Expression
418426}
You can’t perform that action at this time.
0 commit comments