File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/toolkit/src/query/tests Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -498,18 +498,23 @@ describe('type tests', () => {
498
498
id : number
499
499
} > ( )
500
500
expectTypeOf ( api . endpoints . query . Types . ResultType ) . toEqualTypeOf < Post > ( )
501
+ expectTypeOf ( api . endpoints . query . Types . RawResultType ) . toBeAny ( )
501
502
502
503
expectTypeOf ( api . endpoints . query2 . Types . QueryArg ) . toEqualTypeOf < {
503
504
id : number
504
505
} > ( )
505
506
expectTypeOf (
506
507
api . endpoints . query2 . Types . ResultType ,
507
508
) . toEqualTypeOf < Post > ( )
509
+ expectTypeOf ( api . endpoints . query2 . Types . RawResultType ) . toBeAny ( )
508
510
509
511
expectTypeOf ( api . endpoints . query3 . Types . QueryArg ) . toEqualTypeOf < void > ( )
510
512
expectTypeOf ( api . endpoints . query3 . Types . ResultType ) . toEqualTypeOf <
511
513
EntityState < Post , Post [ 'id' ] >
512
514
> ( )
515
+ expectTypeOf ( api . endpoints . query3 . Types . RawResultType ) . toEqualTypeOf <
516
+ Post [ ]
517
+ > ( )
513
518
} )
514
519
} )
515
520
} )
You can’t perform that action at this time.
0 commit comments