InferDeriveProof<T>: T extends ParsedCapability
    ? InferDelegatedCapability<T>
    : InferDeriveProofs<T>

Utility type is used to infer type of the second argument of derives handler (in the cap.derive({ to, derives: (claim, proof) => true })) which could be either capability or set of capabilities. It simply makes all nb fields optional, because in delegation all nb fields could be left out implying no restrictions.

Type Parameters

  • T

Generated using TypeDoc