diff options
Diffstat (limited to 'web/lib/api.ts')
| -rw-r--r-- | web/lib/api.ts | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/web/lib/api.ts b/web/lib/api.ts index 2304826b..56686cde 100644 --- a/web/lib/api.ts +++ b/web/lib/api.ts @@ -15,18 +15,6 @@ export type FetchError = { message?: string; }; -async function doRequest<Schema extends ZodTypeAny>( - _path: string, - respSchema: Schema, - _opts: RequestInit | undefined, -): Promise<[z.infer<typeof respSchema>, undefined] | [undefined, FetchError]>; - -async function doRequest<_Schema>( - _path: string, - _respSchema: undefined, - _opts: RequestInit | undefined, -): Promise<[undefined, undefined] | [undefined, FetchError]>; - type InputSchema<T> = T extends ZodTypeAny ? T : undefined; async function doRequest<T>( |
