Type Alias: RouterLikeInner<TRoot, TRecord>
RouterLikeInner<
TRoot
,TRecord
>: { [TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyMutationProcedure ? MutationLike<TRoot, $Value> : $Value extends AnyQueryProcedure ? QueryLike<TRoot, $Value> : $Value extends RouterRecord | AnyRouter ? RouterLikeInner<TRoot, coerceToRouterRecord<$Value>> : never : never }
Type Parameters
Type Parameter |
---|
TRoot extends AnyRootTypes |
TRecord extends RouterRecord |
Defined in
packages/react-query/src/shared/polymorphism/routerLike.ts:19