2
0
Files
bot/packages/schemas/features/blocks/start/schemas.ts
Baptiste Arnaud 35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00

12 lines
256 B
TypeScript

import { z } from 'zod'
import { blockBaseSchema } from '../shared'
export const startBlockSchema = blockBaseSchema.merge(
z.object({
type: z.literal('start'),
label: z.string(),
})
)
export type StartBlock = z.infer<typeof startBlockSchema>