aboutsummaryrefslogtreecommitdiffstats
path: root/lib/types
diff options
context:
space:
mode:
Diffstat (limited to 'lib/types')
-rw-r--r--lib/types/api/links.ts26
-rw-r--r--lib/types/next-auth.d.ts12
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"];
- }
-}