13 lines
314 B
TypeScript
13 lines
314 B
TypeScript
import { z } from "zod";
|
|
|
|
export const schema = z.object({
|
|
path: z.string(),
|
|
owner: z.number(),
|
|
title: z.string(),
|
|
type: z.enum(['folder', 'file', 'markdown', 'canvas']),
|
|
content: z.string(),
|
|
navigable: z.boolean(),
|
|
private: z.boolean(),
|
|
});
|
|
|
|
export type File = z.infer<typeof schema>;
|