Skip to content

LegacyLink

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

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 type
T extends unknownunknown
optional [Marker]: T;

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

Link.[Marker]


readonly byteLength: number;

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

Link.byteLength


readonly byteOffset: number;

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

Link.byteOffset


readonly bytes: ByteView<Link<T, 112, 18, 0>>;

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

Link.bytes


readonly code: 112;

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

Link.code


readonly multihash: MultihashDigest<18>;

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

Link.multihash


readonly version: 0;

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

Link.version

equals(other): other is Link<T, 112, 18, 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<T, 112, 18, Version>

Link.equals


link(): Link<T, 112, 18, 0>;

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

Link<T, 112, 18, 0>

Link.link


toString<Prefix>(base?): ToString<Link<T, 112, 18, 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<T, 112, 18, Version>, Prefix>

Link.toString


toV1(): Link<T, 112, 18, 1>;

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

Link<T, 112, 18, 1>

Link.toV1