tryFrom
tryFrom(
input):PieceCID|null
Defined in: packages/synapse-core/src/piece/parse.ts:52
Construct a PieceCID from any supported input, or null if the
input is null/undefined or fails validation.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input | PieceCIDInput | null | undefined |
Returns
Section titled “Returns”PieceCID | null