@@ -727,7 +727,7 @@ describe('createQueryKeys |> extrapolating "contextQueries" nesting', () => {
727727 contextQueries : {
728728 nested1 : null ,
729729 nested2 : [ 'context-prop-2' ] ,
730- nested3 : ( nestedValue : string ) => ( {
730+ nested3 : ( nestedValue ? : string ) => ( {
731731 queryKey : [ nestedValue ] ,
732732 contextQueries : {
733733 nested4 : null ,
@@ -770,7 +770,7 @@ describe('createQueryKeys |> extrapolating "contextQueries" nesting', () => {
770770 _def : readonly [ 'test' , 'prop' , string , 'nested2' ] ;
771771 queryKey : readonly [ 'test' , 'prop' , string , 'nested2' , string ] ;
772772 } ;
773- nested3 : { _def : readonly [ 'test' , 'prop' , string , 'nested3' ] } & ( ( nestedValue : string ) => {
773+ nested3 : { _def : readonly [ 'test' , 'prop' , string , 'nested3' ] } & ( ( nestedValue ? : string ) => {
774774 queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string ] ;
775775 _ctx : {
776776 nested4 : { queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string , 'nested4' ] } ;
@@ -793,10 +793,10 @@ describe('createQueryKeys |> extrapolating "contextQueries" nesting', () => {
793793 } ;
794794 nested3 : {
795795 _def : readonly [ 'test' , 'prop' , string , 'nested3' ] ;
796- queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string ] ;
796+ queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string | undefined ] ;
797797 _ctx : {
798798 nested4 : {
799- queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string , 'nested4' ] ;
799+ queryKey : readonly [ 'test' , 'prop' , string , 'nested3' , string | undefined , 'nested4' ] ;
800800 } ;
801801 } ;
802802 } ;
0 commit comments