Skip to content

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

Variable: EdgelessTextZodSchema

const EdgelessTextZodSchema: ZodDefault<ZodObject<{ color: 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; }>]>; fontFamily: ZodNativeEnum<typeof FontFamily>; fontStyle: ZodNativeEnum<typeof FontStyle>; fontWeight: ZodNativeEnum<typeof FontWeight>; textAlign: ZodNativeEnum<typeof TextAlign>; }, "strip", ZodTypeAny, { color: string | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }, { color: string | { normal: string; } | { dark: string; light: string; }; fontFamily: FontFamily; fontStyle: FontStyle; fontWeight: FontWeight; textAlign: TextAlign; }>>

Defined in: packages/affine/model/src/blocks/edgeless-text/edgeless-text-model.ts:32