Skip to content

Commit

Permalink
feat(trpc): make CreateTRPCProxyClient publicly available (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrobin authored Jun 9, 2023
1 parent 9d1b0f8 commit 8a432a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/trpc/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * from './lib/client/client';
export * from './lib/server/server';
export * from './lib/utils/wait-for';

export { CreateTrpcProxyClient } from './lib/client/trpc-rxjs-proxy';
4 changes: 2 additions & 2 deletions packages/trpc/src/lib/client/trpc-rxjs-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type UntypedClientProperties =
| 'mutation';

// Nothing changed, only using new types
export type CreateTRPCProxyClient<TRouter extends AnyRouter> =
export type CreateTrpcProxyClient<TRouter extends AnyRouter> =
DecoratedProcedureRecord<
TRouter['_def']['record'],
TRouter
Expand All @@ -100,7 +100,7 @@ export type CreateTRPCProxyClient<TRouter extends AnyRouter> =
function createTRPCRxJSClientProxy<TRouter extends AnyRouter>(
client: TRPCClient<TRouter>
) {
return createFlatProxy<CreateTRPCProxyClient<TRouter>>((key) => {
return createFlatProxy<CreateTrpcProxyClient<TRouter>>((key) => {
// eslint-disable-next-line no-prototype-builtins
if (client.hasOwnProperty(key)) {
return (client as any)[key as any];
Expand Down

0 comments on commit 8a432a9

Please sign in to comment.