diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-06 12:26:29 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-06 12:26:29 +0000 |
| commit | 083ea5bd19172381bb53e95aaf98eaabef839c54 (patch) | |
| tree | 4d1c041aab7cd8d15382330db08caeb9c5a12c63 /lib/types | |
| parent | b792121977ade8bdd3fb62704b65a9fcbd1436b9 (diff) | |
| download | karakeep-083ea5bd19172381bb53e95aaf98eaabef839c54.tar.zst | |
Move the web app into a subdir
Diffstat (limited to 'lib/types')
| -rw-r--r-- | lib/types/api/links.ts | 26 | ||||
| -rw-r--r-- | lib/types/next-auth.d.ts | 12 |
2 files changed, 0 insertions, 38 deletions
diff --git a/lib/types/api/links.ts b/lib/types/api/links.ts deleted file mode 100644 index 81cde053..00000000 --- a/lib/types/api/links.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { z } from "zod"; - -export const ZBookmarkedLink = z.object({ - id: z.string(), - url: z.string().url(), - createdAt: z.coerce.date(), - - details: z.object({ - title: z.string(), - description: z.string(), - imageUrl: z.string().url(), - }).nullish(), - -}); -export type ZBookmarkedLink = z.infer<typeof ZBookmarkedLink>; - - -// POST /v1/links -export const ZNewBookmarkedLinkRequest = ZBookmarkedLink.pick({ url: true }); - - -// GET /v1/links -export const ZGetLinksResponse = z.object({ - links: z.array(ZBookmarkedLink), -}); -export type ZGetLinksResponse = z.infer<typeof ZGetLinksResponse>; diff --git a/lib/types/next-auth.d.ts b/lib/types/next-auth.d.ts deleted file mode 100644 index bdd3bd03..00000000 --- a/lib/types/next-auth.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import NextAuth, { DefaultSession } from "next-auth" - -declare module "next-auth" { - /** - * Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context - */ - interface Session { - user: { - id: string; - } & DefaultSession["user"]; - } -} |
