diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-07 22:12:18 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-07 22:12:18 +0000 |
| commit | cdc05f85a6dc676e8af1227a56f65d6452488d82 (patch) | |
| tree | b3d1e133d5435e129637067749d0b7e6e55b6c01 /web/lib/api.ts | |
| parent | 8970b3a5375ccfd9b41c8a08722a2fc6bbbe3af9 (diff) | |
| download | karakeep-cdc05f85a6dc676e8af1227a56f65d6452488d82.tar.zst | |
[feature] Render tags in the link card
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>( |
