2023-01-25 11:27:47 +01:00
|
|
|
import { z } from 'zod'
|
2023-11-08 15:34:16 +01:00
|
|
|
import { blockBaseSchema } from '../shared'
|
2023-01-25 11:27:47 +01:00
|
|
|
|
2023-03-14 16:42:12 +01:00
|
|
|
export const startBlockSchema = blockBaseSchema.merge(
|
2023-01-25 11:27:47 +01:00
|
|
|
z.object({
|
|
|
|
type: z.literal('start'),
|
|
|
|
label: z.string(),
|
|
|
|
})
|
|
|
|
)
|
|
|
|
|
|
|
|
export type StartBlock = z.infer<typeof startBlockSchema>
|