@@ -2406,6 +2406,19 @@ function lowerExpression(
2406
2406
kind : 'TypeCastExpression' ,
2407
2407
value : lowerExpressionToTemporary ( builder , expr . get ( 'expression' ) ) ,
2408
2408
typeAnnotation : typeAnnotation . node ,
2409
+ typeAnnotationKind : 'cast' ,
2410
+ type : lowerType ( typeAnnotation . node ) ,
2411
+ loc : exprLoc ,
2412
+ } ;
2413
+ }
2414
+ case 'TSSatisfiesExpression' : {
2415
+ let expr = exprPath as NodePath < t . TSSatisfiesExpression > ;
2416
+ const typeAnnotation = expr . get ( 'typeAnnotation' ) ;
2417
+ return {
2418
+ kind : 'TypeCastExpression' ,
2419
+ value : lowerExpressionToTemporary ( builder , expr . get ( 'expression' ) ) ,
2420
+ typeAnnotation : typeAnnotation . node ,
2421
+ typeAnnotationKind : 'satisfies' ,
2409
2422
type : lowerType ( typeAnnotation . node ) ,
2410
2423
loc : exprLoc ,
2411
2424
} ;
@@ -2417,6 +2430,7 @@ function lowerExpression(
2417
2430
kind : 'TypeCastExpression' ,
2418
2431
value : lowerExpressionToTemporary ( builder , expr . get ( 'expression' ) ) ,
2419
2432
typeAnnotation : typeAnnotation . node ,
2433
+ typeAnnotationKind : 'as' ,
2420
2434
type : lowerType ( typeAnnotation . node ) ,
2421
2435
loc : exprLoc ,
2422
2436
} ;
0 commit comments