added tons of features
This commit is contained in:
13
types/auth.ts
Normal file
13
types/auth.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import {Account, User, UserRole} from '@prisma/client'
|
||||
|
||||
export interface SessionUser {
|
||||
id: number
|
||||
name: string
|
||||
email: string
|
||||
image: string
|
||||
username: string
|
||||
isOauth: boolean
|
||||
role: UserRole
|
||||
provider: string
|
||||
profileId: number
|
||||
}
|
||||
9
types/index.ts
Normal file
9
types/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {z} from 'zod'
|
||||
|
||||
import {ProductInputSchema} from '@/lib/validator'
|
||||
|
||||
export type IProductInput = z.infer<typeof ProductInputSchema>
|
||||
|
||||
export type ResourceMessages =
|
||||
| {error: string; success?: undefined}
|
||||
| {success: string; error?: undefined}
|
||||
Reference in New Issue
Block a user