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.
Utility type is used to infer type of the second argument of
derives
handler (in thecap.derive({ to, derives: (claim, proof) => true })
) which could be either capability or set of capabilities. It simply makes allnb
fields optional, because in delegation allnb
fields could be left out implying no restrictions.