alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
11 lines (8 loc) • 300 B
text/typescript
import type { Static } from "alepha";
import { z } from "alepha";
export const createOrganizationSchema = z.object({
name: z.text(),
slug: z.text({ minLength: 2, maxLength: 100 }),
enabled: z.boolean().optional(),
});
export type CreateOrganization = Static<typeof createOrganizationSchema>;