from
from(
input):PieceCID
Defined in: packages/synapse-core/src/piece/parse.ts:27
Construct a PieceCID from any supported input.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input | PieceCIDInput |
Returns
Section titled “Returns”Throws
Section titled “Throws”RangeError on invalid input or non-PieceCID shape.