Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Feb 13, 2024
1 parent 2d3d134 commit 2e0ed4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion packages/runner/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import type { AppRouter } from './server.js';
import superjson from 'superjson';
import { fetch, Agent } from 'undici';

export function getRunnerClient(url: string): CreateTRPCProxyClient<AppRouter> {
export type ProxyAppRouter = CreateTRPCProxyClient<AppRouter>;

export function getRunnerClient(url: string): ProxyAppRouter {
return createTRPCProxyClient<AppRouter>({
transformer: superjson,
links: [
Expand Down
4 changes: 2 additions & 2 deletions packages/runner/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { getRunnerClient } from './client.js';
export { AppRouter, ProxyAppRouter } from './server.js';
export { getRunnerClient, ProxyAppRouter } from './client.js';
export { AppRouter } from './server.js';
2 changes: 0 additions & 2 deletions packages/runner/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type { NangoProps, RunnerOutput } from '@nangohq/shared';
import { exec } from './exec.js';
import superjson from 'superjson';
import { fetch } from 'undici';
import type { CreateTRPCProxyClient } from '@trpc/client';

export const t = initTRPC.create({
transformer: superjson
Expand All @@ -30,7 +29,6 @@ const appRouter = router({
});

export type AppRouter = typeof appRouter;
export type ProxyAppRouter = CreateTRPCProxyClient<AppRouter>;

function healthProcedure() {
return publicProcedure
Expand Down

0 comments on commit 2e0ed4a

Please sign in to comment.