@@ -727,7 +727,7 @@ describe('createQueryKeys |> extrapolating "contextQueries" nesting', () => {
727
727
contextQueries : {
728
728
nested1 : null ,
729
729
nested2 : [ 'context-prop-2' ] ,
730
- nested3 : ( nestedValue : string ) => ( {
730
+ nested3 : ( nestedValue ? : string ) => ( {
731
731
queryKey : [ nestedValue ] ,
732
732
contextQueries : {
733
733
nested4 : null ,
@@ -770,7 +770,7 @@ describe('createQueryKeys |> extrapolating "contextQueries" nesting', () => {
770
770
_def : readonly [ 'test' , 'prop' , string , 'nested2' ] ;
771
771
queryKey : readonly [ 'test' , 'prop' , string , 'nested2' , string ] ;
772
772
} ;
773
- nested3 : { _def : readonly [ 'test' , 'prop' , string , 'nested3' ] } & ( ( nestedValue : string ) => {
773
+ nested3 : { _def : readonly [ 'test' , 'prop' , string , 'nested3' ] } & ( ( nestedValue ? : string ) => {
774
774
queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string ] ;
775
775
_ctx : {
776
776
nested4 : { queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string , 'nested4' ] } ;
@@ -793,10 +793,10 @@ describe('createQueryKeys |> extrapolating "contextQueries" nesting', () => {
793
793
} ;
794
794
nested3 : {
795
795
_def : readonly [ 'test' , 'prop' , string , 'nested3' ] ;
796
- queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string ] ;
796
+ queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string | undefined ] ;
797
797
_ctx : {
798
798
nested4 : {
799
- queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string , 'nested4' ] ;
799
+ queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string | undefined , 'nested4' ] ;
800
800
} ;
801
801
} ;
802
802
} ;
0 commit comments