mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 05:05:07 -05:00
13 lines
288 B
TypeScript
13 lines
288 B
TypeScript
import { z } from "zod";
|
|
|
|
export type LoggedInUser = z.infer<typeof LoggedInUserSchema>["user"];
|
|
export const LoggedInUserSchema = z.object({
|
|
user: z
|
|
.object({
|
|
id: z.string(),
|
|
discordId: z.string(),
|
|
discordAvatar: z.string().nullable(),
|
|
})
|
|
.nullish(),
|
|
});
|