This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
|
import type {TypeOf} from 'zod'
|
|
import {object, nativeEnum} from 'zod'
|
|
|
|
import {RIGHTS} from '@/constants/rights'
|
|
|
|
export const AbstractSchema = object({
|
|
maxRight: nativeEnum(RIGHTS).nullable(),
|
|
})
|
|
|
|
export type IAbstract = TypeOf<typeof AbstractSchema> |