10 lines
284 B
TypeScript
10 lines
284 B
TypeScript
import { type TypeOf, string } from 'zod'
|
|
import { AbstractSchema } from './abstract'
|
|
|
|
export const EmailUpdateSchema = AbstractSchema.extend({
|
|
newEmail: string().email().default(''),
|
|
password: string().default(''),
|
|
})
|
|
|
|
export type EmailUpdate = TypeOf<typeof EmailUpdateSchema>
|