Skip to content

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

Variable: FootNoteReferenceParamsSchema

const FootNoteReferenceParamsSchema: ZodObject<{ blobId: ZodOptional<ZodString>; docId: ZodOptional<ZodString>; fileName: ZodOptional<ZodString>; fileType: ZodOptional<ZodString>; type: ZodEnum<["doc", "attachment", "url"]>; url: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { blobId: string; docId: string; fileName: string; fileType: string; type: "doc" | "attachment" | "url"; url: string; }, { blobId: string; docId: string; fileName: string; fileType: string; type: "doc" | "attachment" | "url"; url: string; }>

Defined in: packages/affine/model/src/consts/doc.ts:59

FootNoteReferenceParamsSchema is used to define the parameters for a footnote reference. It supports the following types:

  1. docId: string - the id of the doc
  2. blobId: string - the id of the attachment
  3. url: string - the url of the reference
  4. fileName: string - the name of the attachment
  5. fileType: string - the type of the attachment