aboutsummaryrefslogtreecommitdiffstats
path: root/web/lib/api.ts
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-07 22:12:18 +0000
committerMohamedBassem <me@mbassem.com>2024-02-07 22:12:18 +0000
commitcdc05f85a6dc676e8af1227a56f65d6452488d82 (patch)
treeb3d1e133d5435e129637067749d0b7e6e55b6c01 /web/lib/api.ts
parent8970b3a5375ccfd9b41c8a08722a2fc6bbbe3af9 (diff)
downloadkarakeep-cdc05f85a6dc676e8af1227a56f65d6452488d82.tar.zst
[feature] Render tags in the link card
Diffstat (limited to 'web/lib/api.ts')
-rw-r--r--web/lib/api.ts12
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>(