ConstraintJS - v0.10.2
    Preparing search index...

    Type Alias ConstraintGetter<T>

    ConstraintGetter: (
        this: any,
        constraint: Constraint<any>,
        getterArg?: unknown,
    ) => T

    A function that computes a constraint's value. It's called with the constraint itself (for pauseGetter/resumeGetter) and the getterArg passed to get(), if any.

    Type Parameters

    • T

    Type Declaration

      • (this: any, constraint: Constraint<any>, getterArg?: unknown): T
      • Parameters

        • this: any
        • constraint: Constraint<any>
        • OptionalgetterArg: unknown

        Returns T