diff --git a/src/app/(auth)/login/_components/login-form.tsx b/src/app/(auth)/login/_components/login-form.tsx index 0189ba6..447d0b3 100644 --- a/src/app/(auth)/login/_components/login-form.tsx +++ b/src/app/(auth)/login/_components/login-form.tsx @@ -7,7 +7,7 @@ import { useForm } from "react-hook-form" import { Button } from "@/components/ui/button" import { signInAction } from "@/lib/actions/auth.actions" -import { SignInFormType, signInSchema } from "@/lib/schemas/auth.schemas" +import { type SignInFormType, signInSchema } from "@/lib/schemas/auth.schemas" export default function SignInForm() { const router = useRouter() diff --git a/src/app/(dashboard)/assignments/[assignamentId]/edit/page.tsx b/src/app/(dashboard)/assignments/[assignamentId]/edit/page.tsx index 213afb5..be6ae9f 100644 --- a/src/app/(dashboard)/assignments/[assignamentId]/edit/page.tsx +++ b/src/app/(dashboard)/assignments/[assignamentId]/edit/page.tsx @@ -1,4 +1,4 @@ -import { UpdateAssignmentFormType } from "@/lib/schemas/assignment.schemas" +import type { UpdateAssignmentFormType } from "@/lib/schemas/assignment.schemas" import type { Item } from "@/lib/types" import { AssetService } from "@/services/asset.service" import { AssignmentService } from "@/services/assignment.service" diff --git a/src/app/(dashboard)/assignments/_components/edit.assignment.form.tsx b/src/app/(dashboard)/assignments/_components/edit.assignment.form.tsx index bfc4650..b7fd108 100644 --- a/src/app/(dashboard)/assignments/_components/edit.assignment.form.tsx +++ b/src/app/(dashboard)/assignments/_components/edit.assignment.form.tsx @@ -8,10 +8,10 @@ import { toast } from "sonner" import { SubmitButton } from "@/components/forms/submitButton" import { updateAssignment } from "@/lib/actions/assignament.actions" import { - UpdateAssignmentFormType, + type UpdateAssignmentFormType, updateAssignmentSchema, } from "@/lib/schemas/assignment.schemas" -import { Asset, Item, Recipient } from "@/lib/types" +import type { Asset, Item, Recipient } from "@/lib/types" interface Props { recipients: Recipient[] diff --git a/src/app/(dashboard)/assignments/_components/new.assignment.form.tsx b/src/app/(dashboard)/assignments/_components/new.assignment.form.tsx index 939e7d7..f2868e4 100644 --- a/src/app/(dashboard)/assignments/_components/new.assignment.form.tsx +++ b/src/app/(dashboard)/assignments/_components/new.assignment.form.tsx @@ -9,10 +9,10 @@ import { toast } from "sonner" import { SubmitButton } from "@/components/forms/submitButton" import { createAssignment } from "@/lib/actions/assignament.actions" import { - CreateAssignmentFormType, + type CreateAssignmentFormType, createAssignmentSchema, } from "@/lib/schemas/assignment.schemas" -import { Asset, Item, Recipient } from "@/lib/types" +import type { Asset, Item, Recipient } from "@/lib/types" interface Props { recipients: Recipient[] diff --git a/src/app/(dashboard)/assignments/_components/return.button.tsx b/src/app/(dashboard)/assignments/_components/return.button.tsx index 574ca0f..39213b6 100644 --- a/src/app/(dashboard)/assignments/_components/return.button.tsx +++ b/src/app/(dashboard)/assignments/_components/return.button.tsx @@ -7,7 +7,7 @@ import { toast } from "sonner" import { Button } from "@/components/ui/button" import { returnAssignment } from "@/lib/actions/assignament.actions" -import { ReturnAssignmentFormType } from "@/lib/schemas/assignment.schemas" +import type { ReturnAssignmentFormType } from "@/lib/schemas/assignment.schemas" export default function ReturnButton({ assignmentId, diff --git a/src/app/(dashboard)/import/_components/import.form.tsx b/src/app/(dashboard)/import/_components/import.form.tsx index 14ba639..9002a30 100644 --- a/src/app/(dashboard)/import/_components/import.form.tsx +++ b/src/app/(dashboard)/import/_components/import.form.tsx @@ -2,14 +2,14 @@ import { zodResolver } from "@hookform/resolvers/zod" import { useRouter } from "next/navigation" -import { ChangeEvent } from "react" +import type { ChangeEvent } from "react" import { useForm } from "react-hook-form" import { toast } from "sonner" import { SubmitButton } from "@/components/forms/submitButton" import { importItems } from "@/lib/actions/import.actions" -import { ImportFormType, importSchema } from "@/lib/schemas/import.schemas" -import { CategorySummary } from "@/lib/types" +import { type ImportFormType, importSchema } from "@/lib/schemas/import.schemas" +import type { CategorySummary } from "@/lib/types" export default function ImportForm({ categories, diff --git a/src/app/(dashboard)/inventory/assets/[assetId]/edit/page.tsx b/src/app/(dashboard)/inventory/assets/[assetId]/edit/page.tsx index 22b2fb0..f28cb9c 100644 --- a/src/app/(dashboard)/inventory/assets/[assetId]/edit/page.tsx +++ b/src/app/(dashboard)/inventory/assets/[assetId]/edit/page.tsx @@ -1,6 +1,6 @@ "use server" -import { AssetWithAssignment } from "@/lib/types" +import type { AssetWithAssignment } from "@/lib/types" import { AssetService } from "@/services/asset.service" import { ItemService } from "@/services/item.service" import { RecipientService } from "@/services/recipient.service" diff --git a/src/app/(dashboard)/inventory/assets/_components/edit.asset.form.tsx b/src/app/(dashboard)/inventory/assets/_components/edit.asset.form.tsx index 1200f85..4fe233d 100644 --- a/src/app/(dashboard)/inventory/assets/_components/edit.asset.form.tsx +++ b/src/app/(dashboard)/inventory/assets/_components/edit.asset.form.tsx @@ -9,10 +9,10 @@ import { SubmitButton } from "@/components/forms/submitButton" import { ItemStatus } from "@/generated/prisma/client" import { updateAssetAction } from "@/lib/actions/asset.actions" import { - UpdateAssetFormType, + type UpdateAssetFormType, updateAssetSchema, } from "@/lib/schemas/asset.schemas" -import { +import type { AssetWithAssignment, Item, Recipient, diff --git a/src/app/(dashboard)/inventory/assets/_components/new.asset.form.tsx b/src/app/(dashboard)/inventory/assets/_components/new.asset.form.tsx index 32a3234..f7a8ea6 100644 --- a/src/app/(dashboard)/inventory/assets/_components/new.asset.form.tsx +++ b/src/app/(dashboard)/inventory/assets/_components/new.asset.form.tsx @@ -9,10 +9,10 @@ import { SubmitButton } from "@/components/forms/submitButton" import { ItemStatus } from "@/generated/prisma/client" import { createAssetAction } from "@/lib/actions/asset.actions" import { - CreateAssetFormType, + type CreateAssetFormType, createAssetSchema, } from "@/lib/schemas/asset.schemas" -import { ItemWithoutStock, Recipient } from "@/lib/types" +import type { ItemWithoutStock, Recipient } from "@/lib/types" interface NewAssetFormProps { items: ItemWithoutStock[] diff --git a/src/app/(dashboard)/inventory/categories/_components/edit.category.form.tsx b/src/app/(dashboard)/inventory/categories/_components/edit.category.form.tsx index d90c313..d78daf0 100644 --- a/src/app/(dashboard)/inventory/categories/_components/edit.category.form.tsx +++ b/src/app/(dashboard)/inventory/categories/_components/edit.category.form.tsx @@ -8,10 +8,10 @@ import { toast } from "sonner" import { SubmitButton } from "@/components/forms/submitButton" import { updateCategoryAction } from "@/lib/actions/category.actions" import { - UpdateCategoryFormType, + type UpdateCategoryFormType, updateCategorySchema, } from "@/lib/schemas/category.schemas" -import { CategorySummary } from "@/lib/types" +import type { CategorySummary } from "@/lib/types" export default function EditCategoryForm({ category, diff --git a/src/app/(dashboard)/inventory/categories/_components/new.category.form.tsx b/src/app/(dashboard)/inventory/categories/_components/new.category.form.tsx index 5b04220..8339c39 100644 --- a/src/app/(dashboard)/inventory/categories/_components/new.category.form.tsx +++ b/src/app/(dashboard)/inventory/categories/_components/new.category.form.tsx @@ -8,7 +8,7 @@ import { toast } from "sonner" import { SubmitButton } from "@/components/forms/submitButton" import { createCategoryAction } from "@/lib/actions/category.actions" import { - CreateCategoryFormType, + type CreateCategoryFormType, createCategorySchema, } from "@/lib/schemas/category.schemas" diff --git a/src/app/(dashboard)/inventory/items/_components/new.item.form.tsx b/src/app/(dashboard)/inventory/items/_components/new.item.form.tsx index edbfd7b..f32caae 100644 --- a/src/app/(dashboard)/inventory/items/_components/new.item.form.tsx +++ b/src/app/(dashboard)/inventory/items/_components/new.item.form.tsx @@ -8,10 +8,10 @@ import { toast } from "sonner" import { SubmitButton } from "@/components/forms/submitButton" import { createItemAction } from "@/lib/actions/item.actions" import { - CreateItemFormType, + type CreateItemFormType, createItemSchema, } from "@/lib/schemas/item.schemas" -import { CategorySummary } from "@/lib/types" +import type { CategorySummary } from "@/lib/types" export default function NewItemForm({ categories, diff --git a/src/app/(dashboard)/inventory/items/_components/update.item.form.tsx b/src/app/(dashboard)/inventory/items/_components/update.item.form.tsx index 6580931..6c75eb7 100644 --- a/src/app/(dashboard)/inventory/items/_components/update.item.form.tsx +++ b/src/app/(dashboard)/inventory/items/_components/update.item.form.tsx @@ -8,10 +8,10 @@ import { toast } from "sonner" import { SubmitButton } from "@/components/forms/submitButton" import { updateItemAction } from "@/lib/actions/item.actions" import { - UpdateItemFormType, + type UpdateItemFormType, updateItemSchema, } from "@/lib/schemas/item.schemas" -import { CategorySummary, ItemWithAssetCount } from "@/lib/types" +import type { CategorySummary, ItemWithAssetCount } from "@/lib/types" export default function UpdateItemForm({ categories, diff --git a/src/app/(dashboard)/recipients/_components/recipient.form.tsx b/src/app/(dashboard)/recipients/_components/recipient.form.tsx index ce90802..b6e5955 100644 --- a/src/app/(dashboard)/recipients/_components/recipient.form.tsx +++ b/src/app/(dashboard)/recipients/_components/recipient.form.tsx @@ -12,11 +12,11 @@ import { updateRecipient, } from "@/lib/actions/recipient.actions" import { - CreateRecipientFormType, + type CreateRecipientFormType, recipientSchema, - UpdateRecipientFormType, + type UpdateRecipientFormType, } from "@/lib/schemas/recipients.schemas" -import { Recipient } from "@/lib/types" +import type { Recipient } from "@/lib/types" interface RecipientFormProps { initialData?: Recipient diff --git a/src/app/(dashboard)/recipients/page.tsx b/src/app/(dashboard)/recipients/page.tsx index 68c026c..48539f5 100644 --- a/src/app/(dashboard)/recipients/page.tsx +++ b/src/app/(dashboard)/recipients/page.tsx @@ -4,7 +4,7 @@ import Link from "next/link" import PageHeader from "@/components/common/pageheader" import PaginationButtons from "@/components/common/pagination" import { Button } from "@/components/ui/button" -import { Recipient } from "@/generated/prisma/client" +import type { Recipient } from "@/generated/prisma/client" import { RecipientService } from "@/services/recipient.service" export default async function RecipientsPage(props: { diff --git a/src/components/layout/sidebar/sidebarSection.tsx b/src/components/layout/sidebar/sidebarSection.tsx index 7df3672..87fa8ff 100644 --- a/src/components/layout/sidebar/sidebarSection.tsx +++ b/src/components/layout/sidebar/sidebarSection.tsx @@ -3,7 +3,8 @@ import { ChevronRight } from "lucide-react" import Link from "next/link" import { usePathname } from "next/navigation" -import React, { useEffect, useState } from "react" +import type React from "react" +import { useEffect, useState } from "react" import { Collapsible, diff --git a/src/lib/actions/asset.actions.ts b/src/lib/actions/asset.actions.ts index 8244630..d7d57f5 100644 --- a/src/lib/actions/asset.actions.ts +++ b/src/lib/actions/asset.actions.ts @@ -7,9 +7,9 @@ import { updateAssignment, } from "@/lib/actions/assignament.actions" import { - CreateAssetFormType, + type CreateAssetFormType, createAssetSchema, - UpdateAssetFormType, + type UpdateAssetFormType, updateAssetSchema, } from "@/lib/schemas/asset.schemas" import { AssetService } from "@/services/asset.service" diff --git a/src/lib/actions/assignament.actions.ts b/src/lib/actions/assignament.actions.ts index cebc904..1c303b2 100644 --- a/src/lib/actions/assignament.actions.ts +++ b/src/lib/actions/assignament.actions.ts @@ -11,9 +11,9 @@ import { MovementService } from "@/services/movement.service" import { assignmentSchema, - CreateAssignmentFormType, - ReturnAssignmentFormType, - UpdateAssignmentFormType, + type CreateAssignmentFormType, + type ReturnAssignmentFormType, + type UpdateAssignmentFormType, updateAssignmentSchema, } from "../schemas/assignment.schemas" diff --git a/src/lib/actions/auth.actions.ts b/src/lib/actions/auth.actions.ts index c8229df..cb6e42a 100644 --- a/src/lib/actions/auth.actions.ts +++ b/src/lib/actions/auth.actions.ts @@ -3,7 +3,7 @@ import { AuthError } from "next-auth" import { signIn } from "@/lib/auth" -import { SignInFormType } from "@/lib/schemas/auth.schemas" +import type { SignInFormType } from "@/lib/schemas/auth.schemas" export async function signInAction(values: SignInFormType) { const { username, password } = values diff --git a/src/lib/actions/category.actions.ts b/src/lib/actions/category.actions.ts index 3324ad3..eae44b9 100644 --- a/src/lib/actions/category.actions.ts +++ b/src/lib/actions/category.actions.ts @@ -3,9 +3,9 @@ import { revalidatePath } from "next/cache" import { - CreateCategoryFormType, + type CreateCategoryFormType, createCategorySchema, - UpdateCategoryFormType, + type UpdateCategoryFormType, updateCategorySchema, } from "@/lib/schemas/category.schemas" import { CategoryService } from "@/services/category.service" diff --git a/src/lib/actions/import.actions.ts b/src/lib/actions/import.actions.ts index f5a216e..3c752af 100644 --- a/src/lib/actions/import.actions.ts +++ b/src/lib/actions/import.actions.ts @@ -3,8 +3,8 @@ import { revalidatePath } from "next/cache" import Papa from "papaparse" -import { ImportFormType, importSchema } from "@/lib/schemas/import.schemas" -import { ImportItem } from "@/lib/types" +import { type ImportFormType, importSchema } from "@/lib/schemas/import.schemas" +import type { ImportItem } from "@/lib/types" import { AssetService } from "@/services/asset.service" import { AssignmentService } from "@/services/assignment.service" import { CategoryService } from "@/services/category.service" @@ -47,7 +47,7 @@ export async function importItems(formData: ImportFormType) { if (papaErrors.length > 0) { return { errors: { - file: papaErrors.map((err) => err.message).flat(), + file: papaErrors.flatMap((err) => err.message), }, } } diff --git a/src/lib/actions/item.actions.ts b/src/lib/actions/item.actions.ts index f1f9e6d..b93c4c2 100644 --- a/src/lib/actions/item.actions.ts +++ b/src/lib/actions/item.actions.ts @@ -4,9 +4,9 @@ import { revalidatePath } from "next/cache" import prisma from "@/lib/prisma" import { - CreateItemFormType, + type CreateItemFormType, createItemSchema, - UpdateItemFormType, + type UpdateItemFormType, updateItemSchema, } from "@/lib/schemas/item.schemas" import { getAuthenticatedUserId } from "@/services/auth.service" diff --git a/src/lib/actions/movements.actions.ts b/src/lib/actions/movements.actions.ts index 62e0c3e..b268d67 100644 --- a/src/lib/actions/movements.actions.ts +++ b/src/lib/actions/movements.actions.ts @@ -1,5 +1,5 @@ import { - CreateMovementFormType, + type CreateMovementFormType, createMovementSchema, } from "../schemas/movement.schemas" diff --git a/src/lib/actions/recipient.actions.ts b/src/lib/actions/recipient.actions.ts index 389df57..a7f71a3 100644 --- a/src/lib/actions/recipient.actions.ts +++ b/src/lib/actions/recipient.actions.ts @@ -4,9 +4,9 @@ import { revalidatePath } from "next/cache" import prisma from "@/lib/prisma" import { - CreateRecipientFormType, + type CreateRecipientFormType, createRecipientSchema, - UpdateRecipientFormType, + type UpdateRecipientFormType, updateRecipientSchema, } from "@/lib/schemas/recipients.schemas" import { RecipientService } from "@/services/recipient.service" diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 85e02f2..2ba807d 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -2,7 +2,7 @@ import NextAuth, { type DefaultSession } from "next-auth" import Credentials from "next-auth/providers/credentials" import { ZodError } from "zod" -import { UserRole } from "@/generated/prisma/client" +import type { UserRole } from "@/generated/prisma/client" import { SIGN_IN_URL, TOKEN_EXPIRATION_SECONDS } from "@/lib/constants" import { signInSchema } from "@/lib/schemas/auth.schemas" import { verifyPassword } from "@/lib/security" diff --git a/src/lib/paginate.ts b/src/lib/paginate.ts index 1e98f7c..9c744d0 100755 --- a/src/lib/paginate.ts +++ b/src/lib/paginate.ts @@ -1,5 +1,5 @@ -import { Prisma } from "@/generated/prisma/client" -import { PaginatedResult } from "@/lib/types" +import type { Prisma } from "@/generated/prisma/client" +import type { PaginatedResult } from "@/lib/types" //eslint-disable-next-line type PaginationArgs = { diff --git a/src/lib/types/asset.ts b/src/lib/types/asset.ts index 36224ed..bf9baf9 100644 --- a/src/lib/types/asset.ts +++ b/src/lib/types/asset.ts @@ -1,6 +1,6 @@ -import { - Asset as PrismaAsset, +import type { Assignment, + Asset as PrismaAsset, ItemStatus as PrismaItemStatus, } from "@/generated/prisma/client" diff --git a/src/lib/types/assignment.ts b/src/lib/types/assignment.ts index 4a7f35f..1e3e344 100644 --- a/src/lib/types/assignment.ts +++ b/src/lib/types/assignment.ts @@ -1,8 +1,8 @@ -import { Assignment as PrismaAssignment } from "@/generated/prisma/client" +import type { Assignment as PrismaAssignment } from "@/generated/prisma/client" -import { Asset } from "./asset" -import { Item } from "./item" -import { Recipient } from "./recipient" +import type { Asset } from "./asset" +import type { Item } from "./item" +import type { Recipient } from "./recipient" export type Assignment = PrismaAssignment diff --git a/src/lib/types/category.ts b/src/lib/types/category.ts index f861c23..36de6dc 100644 --- a/src/lib/types/category.ts +++ b/src/lib/types/category.ts @@ -1,4 +1,4 @@ -import { Category as PrismaCategory } from "@/generated/prisma/client" +import type { Category as PrismaCategory } from "@/generated/prisma/client" export type Category = PrismaCategory diff --git a/src/lib/types/item.ts b/src/lib/types/item.ts index abbb12f..f863464 100644 --- a/src/lib/types/item.ts +++ b/src/lib/types/item.ts @@ -1,4 +1,4 @@ -import { Category, Item as PrismaItem } from "@/generated/prisma/client" +import type { Category, Item as PrismaItem } from "@/generated/prisma/client" export type Item = PrismaItem diff --git a/src/lib/types/movement.ts b/src/lib/types/movement.ts index 4c98bad..10347ed 100644 --- a/src/lib/types/movement.ts +++ b/src/lib/types/movement.ts @@ -1,8 +1,8 @@ -import { Movement as PrismaMovement } from "@/generated/prisma/client" +import type { Movement as PrismaMovement } from "@/generated/prisma/client" -import { Asset } from "./asset" -import { Item } from "./item" -import { Recipient } from "./recipient" +import type { Asset } from "./asset" +import type { Item } from "./item" +import type { Recipient } from "./recipient" export type Movement = PrismaMovement diff --git a/src/lib/types/recipient.ts b/src/lib/types/recipient.ts index 3a96a8a..76dc990 100644 --- a/src/lib/types/recipient.ts +++ b/src/lib/types/recipient.ts @@ -1,3 +1,3 @@ -import { Recipient as PrismaRecipient } from "@/generated/prisma/client" +import type { Recipient as PrismaRecipient } from "@/generated/prisma/client" export type Recipient = PrismaRecipient diff --git a/src/lib/types/user.ts b/src/lib/types/user.ts index 111c414..9802186 100644 --- a/src/lib/types/user.ts +++ b/src/lib/types/user.ts @@ -1,3 +1,3 @@ -import { User as PrismaUser } from "@/generated/prisma/client" +import type { User as PrismaUser } from "@/generated/prisma/client" export type User = PrismaUser diff --git a/src/services/asset.service.ts b/src/services/asset.service.ts index 59cee49..276693f 100644 --- a/src/services/asset.service.ts +++ b/src/services/asset.service.ts @@ -1,7 +1,7 @@ -import { Asset, Prisma } from "@/generated/prisma/client" +import type { Asset, Prisma } from "@/generated/prisma/client" import { paginate } from "@/lib/paginate" import prisma from "@/lib/prisma" -import { +import type { AssetWithAssignment, AssetWithItemAndCategory, } from "@/lib/types/asset" diff --git a/src/services/assignment.service.ts b/src/services/assignment.service.ts index 1655eb0..4d09788 100644 --- a/src/services/assignment.service.ts +++ b/src/services/assignment.service.ts @@ -1,8 +1,8 @@ -import { Prisma } from "@/generated/prisma/client" +import type { Prisma } from "@/generated/prisma/client" import { paginate } from "@/lib/paginate" import prisma from "@/lib/prisma" -import { CreateAssignmentFormType } from "@/lib/schemas/assignment.schemas" -import { Assignment, AssignmentWithRecipientItemAsset } from "@/lib/types" +import type { CreateAssignmentFormType } from "@/lib/schemas/assignment.schemas" +import type { Assignment, AssignmentWithRecipientItemAsset } from "@/lib/types" import { getAuthenticatedUserId } from "./auth.service" diff --git a/src/services/category.service.ts b/src/services/category.service.ts index f6a6789..9e53ae7 100644 --- a/src/services/category.service.ts +++ b/src/services/category.service.ts @@ -1,7 +1,7 @@ -import { Prisma } from "@/generated/prisma/client" +import type { Prisma } from "@/generated/prisma/client" import { paginate } from "@/lib/paginate" import prisma from "@/lib/prisma" -import { Category, CategorySummary, CategoryWithItemsCount } from "@/lib/types" +import type { Category, CategorySummary, CategoryWithItemsCount } from "@/lib/types" export const CategoryService = { findAll: async (): Promise => { diff --git a/src/services/item.service.ts b/src/services/item.service.ts index 6beb337..152be69 100644 --- a/src/services/item.service.ts +++ b/src/services/item.service.ts @@ -1,7 +1,7 @@ -import { Prisma } from "@/generated/prisma/client" +import type { Prisma } from "@/generated/prisma/client" import { paginate } from "@/lib/paginate" import prisma from "@/lib/prisma" -import { +import type { Item, ItemSummary, ItemWithAssetAndMovementCount, diff --git a/src/services/movement.service.ts b/src/services/movement.service.ts index 078f657..bd8f52c 100644 --- a/src/services/movement.service.ts +++ b/src/services/movement.service.ts @@ -1,8 +1,8 @@ -import { MovementType, Prisma } from "@/generated/prisma/client" +import type { MovementType, Prisma } from "@/generated/prisma/client" import { paginate } from "@/lib/paginate" import prisma from "@/lib/prisma" -import { CreateMovementFormType } from "@/lib/schemas/movement.schemas" -import { Movement } from "@/lib/types" +import type { CreateMovementFormType } from "@/lib/schemas/movement.schemas" +import type { Movement } from "@/lib/types" import { getAuthenticatedUserId } from "./auth.service" diff --git a/src/services/recipient.service.ts b/src/services/recipient.service.ts index 66a4a4a..e5b9e62 100644 --- a/src/services/recipient.service.ts +++ b/src/services/recipient.service.ts @@ -1,4 +1,4 @@ -import { Prisma, Recipient } from "@/generated/prisma/client" +import type { Prisma, Recipient } from "@/generated/prisma/client" import { paginate } from "@/lib/paginate" import prisma from "@/lib/prisma" diff --git a/src/services/user.service.ts b/src/services/user.service.ts index a687271..3d3faf2 100644 --- a/src/services/user.service.ts +++ b/src/services/user.service.ts @@ -1,7 +1,7 @@ import { UserRole } from "@/generated/prisma/client" import prisma from "@/lib/prisma" import { getPasswordHash } from "@/lib/security" -import { User } from "@/lib/types/user" +import type { User } from "@/lib/types/user" export async function createUser({ data }: { data: User }) { const newUser = await prisma.user.create({