@trpc/react-query
Version:
12 lines (10 loc) • 401 B
text/typescript
import type { AnyRouter } from '@trpc/server/unstable-core-do-not-import';
import type { DecoratedProcedureUtilsRecord } from '../proxy/utilsProxy';
/**
* Use to describe a Utils/Context path which matches the given route's interface
*/
export type UtilsLike<TRouter extends AnyRouter> =
DecoratedProcedureUtilsRecord<
TRouter['_def']['_config']['$types'],
TRouter['_def']['record']
>;