Skip to content

Commit

Permalink
Some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Dec 13, 2021
1 parent e9450e9 commit 2ee2775
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/attenuation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ import * as util from "./util"


export interface CapabilitySemantics<A> {
/**
* 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`.
Expand Down

0 comments on commit 2ee2775

Please sign in to comment.