Type alias InferAllowedFromCapability<T>

InferAllowedFromCapability<T>: T extends Capability<infer Can, infer URI, infer Caveats>
    ? {
        [K in URI]: {
            [K in Can]: (Caveats & {})[]
        }
    }
    : never

Utility type that infers set of capabilities in UCAN 0.10 format from a single Capability.

Type Parameters

  • T

Generated using TypeDoc