13 lines
392 B
TypeScript
13 lines
392 B
TypeScript
import type { TypeOf } from 'zod'
|
|
|
|
import { AbstractSchema } from './abstract'
|
|
import { IdSchema } from './common/id'
|
|
import { ListSchema } from './list'
|
|
|
|
export const ListDuplicationSchema = AbstractSchema.extend({
|
|
listId: IdSchema.default(0),
|
|
namespaceId: IdSchema.default(0), // INamespace['id'],
|
|
list: ListSchema,
|
|
})
|
|
|
|
export type ListDuplication = TypeOf<typeof ListDuplicationSchema>
|