Skip to content

BlockSuite API Documentation / @blocksuite/blocks / AliasInfoSchema

Variable: AliasInfoSchema

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

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