Skip to content

DecodedGrant

DecodedGrant = Grant & object

Defined in: wrap.ts:33

A decoded grant. Text-keyed fields such as pieceCid are informational and unauthenticated, so treat them as untrusted. Only pieceCid is typed: there is deliberately no index signature, so a misspelled field is a compile error rather than a silent undefined. Any other informational key is present at runtime; narrow it from Reflect.get(grant, key).

optional pieceCid?: unknown