Interface Link<Data, Format, Alg, V>

Represents an IPLD link to a specific data of type T.

Template

Logical type of the data being linked to.

Template

multicodec code corresponding to a codec linked data is encoded with

Template

multicodec code corresponding to the hashing algorithm of the CID

Type Parameters

  • Data extends unknown = unknown

  • Format extends number = number

  • Alg extends number = number

  • V extends Version = Version

    CID version

Hierarchy

  • Link<Data, Format, Alg, V>
    • Link

Properties

[Marker]?: Data
byteLength: number
byteOffset: number
bytes: ByteView<Link<Data, Format, Alg, V>>
code: Format
equals: ((other) => other is Link<Data, Format, Alg, Version>)

Type declaration

    • (other): other is Link<Data, Format, Alg, Version>
    • Parameters

      • other: unknown

      Returns other is Link<Data, Format, Alg, Version>

link: (() => Link<Data, Format, Alg, V>)

Type declaration

    • (): Link<Data, Format, Alg, V>
    • Returns Link<Data, Format, Alg, V>

toString: (<Prefix>(base?) => ToString<Link<Data, Format, Alg, Version>, Prefix>)

Type declaration

toV1: (() => Link<Data, Format, Alg, 1>)

Type declaration

    • (): Link<Data, Format, Alg, 1>
    • Returns Link<Data, Format, Alg, 1>

version: V

Generated using TypeDoc