UNPKG

alepha

Version:

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

11 lines (8 loc) 364 B
import { type Static, z } from "alepha"; import { userAccountInfoSchema } from "alepha/security"; import { apiRegistryResponseSchema } from "alepha/server/links"; export const userinfoResponseSchema = z.object({ user: userAccountInfoSchema.optional(), api: apiRegistryResponseSchema, }); export type UserinfoResponse = Static<typeof userinfoResponseSchema>;