Skip to content

Link

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:16

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

Logical type of the data being linked to.

multicodec code corresponding to a codec linked data is encoded with

multicodec code corresponding to the hashing algorithm of the CID

Type ParameterDefault typeDescription
Data extends unknownunknown-
Format extends numbernumber-
Alg extends numbernumber-
V extends Version1CID version
optional [Marker]: Data;

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/block/interface.d.ts:33

Phantom.[Marker]


readonly byteLength: number;

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:21


readonly byteOffset: number;

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:20


readonly bytes: ByteView<Link<Data, Format, Alg, V>>;

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:22


readonly code: Format;

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:18


readonly multihash: MultihashDigest<Alg>;

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:19


readonly version: V;

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:17

equals(other): other is Link<Data, Format, Alg, Version>;

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:23

ParameterType
otherunknown

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


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

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:25

Link<Data, Format, Alg, V>


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

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:24

Returns a string representation of an object.

Type Parameter
Prefix extends string
ParameterType
base?MultibaseEncoder<Prefix>

ToString<Link<Data, Format, Alg, Version>, Prefix>


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

Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:26

Link<Data, Format, Alg, 1>