Skip to content

BlockSuite API Documentation / @blocksuite/blocks / AliasInfoSchema

Variable: AliasInfoSchema

const AliasInfoSchema: z.ZodObject<{ description: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { description: string; title: string; }, { description: string; title: string; }>

Custom title and description information.

Supports the following blocks:

  1. Inline View: AffineReference - title
  2. Card View: EmbedLinkedDocBlock - title & description
  3. Embed View: EmbedSyncedDocBlock - title

Defined in

packages/affine/model/dist/consts/doc.d.ts:13