feat: add notes app
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export interface NotesDocSummary {
|
||||
id: number
|
||||
title: string
|
||||
/** ISO timestamps, set by the server; null for rows added in Baserow directly */
|
||||
created: string | null
|
||||
updated: string | null
|
||||
}
|
||||
|
||||
export interface NotesDoc extends NotesDocSummary {
|
||||
/** Markdown */
|
||||
content: string
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const notesDocUpdateSchema = z.object({
|
||||
title: z.string().max(255).optional(),
|
||||
content: z.string().optional()
|
||||
})
|
||||
|
||||
export type NotesDocUpdate = z.output<typeof notesDocUpdateSchema>
|
||||
Reference in New Issue
Block a user