UNPKG

alepha

Version:

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

14 lines (11 loc) 361 B
import type { Static } from "alepha"; import { z } from "alepha"; import { users } from "../entities/users.ts"; /** * Schema for user registration response. * Returns the created user without sensitive data. */ export const registerResponseSchema = z.object({ user: users.schema, }); export type RegisterResponse = Static<typeof registerResponseSchema>;