Skip to content

from

from(input): PieceCID

Defined in: packages/synapse-core/src/piece/parse.ts:27

Construct a PieceCID from any supported input.

ParameterType
inputPieceCIDInput

PieceCID

RangeError on invalid input or non-PieceCID shape.