UNPKG

alepha

Version:

Easy-to-use modern TypeScript framework for building many kind of applications.

10 lines (7 loc) 261 B
import { type Static, z } from "alepha"; export const changePlanSchema = z.object({ planId: z.string(), interval: z.enum(["monthly", "yearly"]).optional(), immediate: z.boolean().optional(), }); export type ChangePlan = Static<typeof changePlanSchema>;