Skip to main content
Version: 11.x

Type Alias: RouterLikeInner<TRoot, TRecord>

RouterLikeInner<TRoot, TRecord>: { [TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends RouterRecord ? RouterLikeInner<TRoot, $Value> : $Value extends AnyQueryProcedure ? QueryLike<TRoot, $Value> : $Value extends AnyMutationProcedure ? MutationLike<TRoot, $Value> : never : never }

Type Parameters

Type Parameter
TRoot extends AnyRootTypes
TRecord extends RouterRecord

Defined in

packages/react-query/src/shared/polymorphism/routerLike.ts:18