Skip to content

BlockSuite API Documentation / @blocksuite/affine-model / NoteZodSchema

Variable: NoteZodSchema

const NoteZodSchema: ZodDefault<ZodObject<{ background: ZodUnion<[ZodString, ZodObject<{ normal: ZodString; }, "strip", ZodTypeAny, { normal: string; }, { normal: string; }>, ZodObject<{ dark: ZodString; light: ZodString; }, "strip", ZodTypeAny, { dark: string; light: string; }, { dark: string; light: string; }>]>; displayMode: ZodNativeEnum<typeof NoteDisplayMode>; edgeless: ZodObject<{ style: ZodObject<{ borderRadius: ZodNumber; borderSize: ZodNumber; borderStyle: ZodNativeEnum<typeof StrokeStyle>; shadowType: ZodNativeEnum<typeof NoteShadow>; }, "strip", ZodTypeAny, { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }, { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }>; }, "strip", ZodTypeAny, { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }, { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }>; }, "strip", ZodTypeAny, { background: string | { normal: string; } | { dark: string; light: string; }; displayMode: NoteDisplayMode; edgeless: { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }; }, { background: string | { normal: string; } | { dark: string; light: string; }; displayMode: NoteDisplayMode; edgeless: { style: { borderRadius: number; borderSize: number; borderStyle: StrokeStyle; shadowType: NoteShadow; }; }; }>>

Defined in: packages/affine/model/src/blocks/note/note-model.ts:30