turbodombuilder - v0.9.66
    Preparing search index...

    Type Alias MakeEnforcerOptions

    Type representing objects used to configure the creation of enforcers. Used in makeEnforcer.

    type MakeEnforcerOptions = {
        onActivate?: () => void;
        onDeactivate?: () => void;
        priority?: number;
        active?: boolean;
        attachedInstance?: TurboEnforcer;
    }
    Index

    Properties

    onActivate?: () => void

    Callback function to execute when the enforcer is activated.

    onDeactivate?: () => void

    Callback function to execute when the enforcer is deactivated.

    priority?: number

    The priority of the enforcer. Higher priority enforcers (lower number) should be resolved first. Defaults to 10.

    active?: boolean

    Whether the enforcer is active. Defaults to true.

    attachedInstance?: TurboEnforcer

    The optional TurboEnforcer instance to attach to the enforcer.