Skip to content

validateFindPieceResponse

function validateFindPieceResponse(value): FindPieceResponse;

Defined in: src/pdp/validation.ts:155

Validates and returns a FindPieceResponse Normalizes the response to always have pieceCid field as a PieceCID object

ParameterTypeDescription
valueunknownThe value to validate

FindPieceResponse

Error if validation fails