gatehouse-ts
    Preparing search index...

    Type Alias EvaluateAccess<Subject, Resource, Action, Context>

    EvaluateAccess: (
        { subject, resource, action, context, }: {
            action: Action;
            context: Context;
            resource: Resource;
            subject: Subject;
        },
    ) => PolicyEvalResult
    | Promise<PolicyEvalResult>

    Function type for evaluating access based on subject, resource, action, and context.

    Type Parameters

    • Subject

      The type of the subject requesting access

    • Resource

      The type of resource being accessed

    • Action

      The type of action being performed

    • Context

      Additional contextual information

    Type declaration