Search
Preparing search index...
The search index is not available
blockcodec-to-ipld-format - v2.0.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
blockcodec-to-ipld-format - v2.0.0
Index
Type aliases
Block
Codec
IPLDFormat
Functions
convert
Type aliases
Block
Codec
Block
Codec<Code, T>
:
BlockCodec
<Code, T>
Type parameters
Code
T
IPLDFormat
IPLDFormat<T>
:
Format
Type parameters
T
Functions
convert
convert<Code, T>
(
blockCodec
:
BlockCodec
<
Code
,
T
>
, options
?:
undefined
|
{
defaultHashAlg
:
undefined
|
HashName
;
resolve
:
undefined
|
(
(
binaryBlob
:
Uint8Array
, path
:
string
)
=>
{
remainderPath
:
string
;
value
:
any
}
)
;
tree
:
undefined
|
(
(
binaryBlob
:
Uint8Array
)
=>
Generator
<
string
,
void
,
undefined
>
)
}
)
:
Format
<
T
>
Converts a BlockFormat from the multiformats module into an IPLD Format
Type parameters
Code
T
Parameters
blockCodec:
BlockCodec
<
Code
,
T
>
options:
undefined
|
{
defaultHashAlg
:
undefined
|
HashName
;
resolve
:
undefined
|
(
(
binaryBlob
:
Uint8Array
, path
:
string
)
=>
{
remainderPath
:
string
;
value
:
any
}
)
;
tree
:
undefined
|
(
(
binaryBlob
:
Uint8Array
)
=>
Generator
<
string
,
void
,
undefined
>
)
}
= {}
Returns
Format
<
T
>
Exports
Block
Codec
IPLDFormat
convert
<Code, T>