InferDelegatedCapability<T>: keyof T["nb"] extends never
    ? {
        can: T["can"];
        with: T["with"];
    }
    : {
        can: T["can"];
        nb: Partial<T["nb"]>;
        with: T["with"];
    }

In delegation capability all the nb fields are optional. This type maps capability type (as it would be in the invocation) to the form it will be in the delegation.

Type Parameters

Generated using TypeDoc