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
.
Template
Section titled “Template”Logical type of the data being linked to.
Template
Section titled “Template”multicodec code corresponding to a codec linked data is encoded with
Template
Section titled “Template”multicodec code corresponding to the hashing algorithm of the CID
Extends
Section titled “Extends”Phantom
<Data
>
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”Type Parameter | Default type | Description |
---|---|---|
Data extends unknown | unknown | - |
Format extends number | number | - |
Alg extends number | number | - |
V extends Version | 1 | CID version |
Properties
Section titled “Properties”[Marker]?
Section titled “[Marker]?”optional [Marker]: Data;
Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/block/interface.d.ts:33
Inherited from
Section titled “Inherited from”byteLength
Section titled “byteLength”readonly byteLength: number;
Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:21
byteOffset
Section titled “byteOffset”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
multihash
Section titled “multihash”readonly multihash: MultihashDigest<Alg>;
Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:19
version
Section titled “version”readonly version: V;
Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/link/interface.d.ts:17
Methods
Section titled “Methods”equals()
Section titled “equals()”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
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
other | unknown |
Returns
Section titled “Returns”other is Link<Data, Format, Alg, Version>
link()
Section titled “link()”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
Returns
Section titled “Returns”Link
<Data
, Format
, Alg
, V
>
toString()
Section titled “toString()”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 Parameters
Section titled “Type Parameters”Type Parameter |
---|
Prefix extends string |
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
base? | MultibaseEncoder <Prefix > |
Returns
Section titled “Returns”ToString
<Link
<Data
, Format
, Alg
, Version
>, Prefix
>
toV1()
Section titled “toV1()”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
Returns
Section titled “Returns”Link
<Data
, Format
, Alg
, 1
>