gradum-kit - v0.1.0
    Preparing search index...

    Type Alias MakeConstrainerOptions

    Options for turning an object into a constrainer with GradumSelector.makeConstrainer.

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

    Callback function to execute when the constrainer is activated.

    onDeactivate?: () => void

    Callback function to execute when the constrainer is deactivated.

    priority?: number

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

    active?: boolean

    Whether the constrainer is active. Defaults to true.

    attachedInstance?: GradumConstrainer

    The optional GradumConstrainer instance to attach to the constrainer.