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 {
351
351
type : 'SequenceExpression'
352
352
expressions : Expression [ ]
353
353
}
354
+ export type UnaryOperator = '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete'
354
355
export interface UnaryExpression extends HasParentNode {
355
356
type : 'UnaryExpression'
356
- operator : '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete'
357
+ operator : UnaryOperator
357
358
prefix : boolean
358
359
argument : Expression
359
360
}
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
+ | '**'
360
384
export interface BinaryExpression extends HasParentNode {
361
385
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
385
387
left : Expression
386
388
right : Expression
387
389
}
390
+ export type AssignmentOperator =
391
+ | '='
392
+ | '+='
393
+ | '-='
394
+ | '*='
395
+ | '/='
396
+ | '%='
397
+ | '<<='
398
+ | '>>='
399
+ | '>>>='
400
+ | '|='
401
+ | '^='
402
+ | '&='
403
+ | '**='
404
+ | '||='
405
+ | '&&='
406
+ | '??='
388
407
export interface AssignmentExpression extends HasParentNode {
389
408
type : 'AssignmentExpression'
390
- operator :
391
- | '='
392
- | '+='
393
- | '-='
394
- | '*='
395
- | '/='
396
- | '%='
397
- | '**='
398
- | '<<='
399
- | '>>='
400
- | '>>>='
401
- | '|='
402
- | '^='
403
- | '&='
409
+ operator : AssignmentOperator
404
410
left : Pattern
405
411
right : Expression
406
412
}
413
+ export type UpdateOperator = '++' | '--'
407
414
export interface UpdateExpression extends HasParentNode {
408
415
type : 'UpdateExpression'
409
- operator : '++' | '--'
416
+ operator : UpdateOperator
410
417
argument : Expression
411
418
prefix : boolean
412
419
}
420
+ export type LogicalOperator = '||' | '&&' | '??'
413
421
export interface LogicalExpression extends HasParentNode {
414
422
type : 'LogicalExpression'
415
- operator : '||' | '&&' | '??'
423
+ operator : LogicalOperator
416
424
left : Expression
417
425
right : Expression
418
426
}
You can’t perform that action at this time.
0 commit comments