Skip to content

Commit

Permalink
chore: cleanup worker API client export
Browse files Browse the repository at this point in the history
  • Loading branch information
dallen4 committed Dec 18, 2024
1 parent ae9a59f commit 4249084
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion worker/src/client.ts → worker/client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { hc, ClientRequestOptions } from 'hono/client';
import { DeadropWorkerApi } from './app';
import { DeadropWorkerApi } from './src/app';

export const createClient = (
url: string,
options?: ClientRequestOptions,
) => hc<DeadropWorkerApi>(url, options);

export type DeadropApiClient = ReturnType<typeof createClient>;

0 comments on commit 4249084

Please sign in to comment.