mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-10-29 17:52:41 -04:00
15 lines
285 B
TypeScript
15 lines
285 B
TypeScript
import { z } from "zod";
|
|
import { User } from "./user";
|
|
|
|
// TODO: actually parse the token
|
|
const TokenP = z.string();
|
|
|
|
export const AccountP = User.and(
|
|
z.object({
|
|
token: TokenP,
|
|
apiUrl: z.string(),
|
|
selected: z.boolean(),
|
|
}),
|
|
);
|
|
export type Account = z.infer<typeof AccountP>;
|