You've already forked obsidian-visualiser
Add sync, Tree, Markdown, content editor.
This commit is contained in:
13
schemas/file.ts
Normal file
13
schemas/file.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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>;
|
||||
Reference in New Issue
Block a user