diff --git a/src/attenuation.ts b/src/attenuation.ts index fa4db83..828dfcd 100644 --- a/src/attenuation.ts +++ b/src/attenuation.ts @@ -5,6 +5,14 @@ import * as util from "./util" export interface CapabilitySemantics { + /** + * Try to parse a capability into a representation used for + * delegation & returning in the `capabilities` call. + * + * If the capability doesn't seem to match the format expected + * for the capabilities with the semantics currently defined, + * return `null`. + */ tryParsing(cap: Capability): A | null /** * This figures out whether a given `childCap` can be delegated from `parentCap`.