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
<typeofNoteDisplayMode
>;edgeless
:ZodObject
<{style
:ZodObject
<{borderRadius
:ZodNumber
;borderSize
:ZodNumber
;borderStyle
:ZodNativeEnum
<typeofStrokeStyle
>;shadowType
:ZodNativeEnum
<typeofNoteShadow
>; },"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