Type alias Predicates

Predicates: {
    any: (<T1>(p1) => AnyPredicate<T1>) & (<T1, T2>(p1, p2) => AnyPredicate<T1 | T2>) & (<T1, T2, T3>(p1, p2, p3) => AnyPredicate<T1 | T2 | T3>) & (<T1, T2, T3, T4>(p1, p2, p3, p4) => AnyPredicate<T1 | T2 | T3 | T4>) & (<T1, T2, T3, T4, T5>(p1, p2, p3, p4, p5) => AnyPredicate<T1 | T2 | T3 | T4 | T5>) & (<T1, T2, T3, T4, T5, T6>(p1, p2, p3, p4, p5, p6) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6>) & (<T1, T2, T3, T4, T5, T6, T7>(p1, p2, p3, p4, p5, p6, p7) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6 | T7>) & (<T1, T2, T3, T4, T5, T6, T7, T8>(p1, p2, p3, p4, p5, p6, p7, p8) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>) & (<T1, T2, T3, T4, T5, T6, T7, T8, T9>(p1, p2, p3, p4, p5, p6, p7, p8, p9) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>) & (<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>) & ((...predicate) => AnyPredicate);
    array: ArrayPredicate;
    arrayBuffer: ArrayBufferPredicate<ArrayBuffer>;
    bigint: BigIntPredicate;
    boolean: BooleanPredicate;
    buffer: Predicate<Buffer>;
    dataView: DataViewPredicate;
    date: DatePredicate;
    error: ErrorPredicate;
    float32Array: TypedArrayPredicate<Float32Array>;
    float64Array: TypedArrayPredicate<Float64Array>;
    function: Predicate<Function>;
    int16Array: TypedArrayPredicate<Int16Array>;
    int32Array: TypedArrayPredicate<Int32Array>;
    int8Array: TypedArrayPredicate<Int8Array>;
    iterable: Predicate<Iterable<unknown>>;
    map: MapPredicate;
    nan: Predicate<number>;
    null: Predicate<null>;
    nullOrUndefined: Predicate<null | undefined>;
    number: NumberPredicate;
    object: ObjectPredicate;
    promise: Predicate<Promise<unknown>>;
    regExp: Predicate<RegExp>;
    set: SetPredicate;
    sharedArrayBuffer: ArrayBufferPredicate<SharedArrayBuffer>;
    string: StringPredicate;
    symbol: Predicate<symbol>;
    typedArray: TypedArrayPredicate<TypedArray>;
    uint16Array: TypedArrayPredicate<Uint16Array>;
    uint32Array: TypedArrayPredicate<Uint32Array>;
    uint8Array: TypedArrayPredicate<Uint8Array>;
    uint8ClampedArray: TypedArrayPredicate<Uint8ClampedArray>;
    undefined: Predicate<undefined>;
    weakMap: WeakMapPredicate;
    weakSet: WeakSetPredicate;
}

Type declaration

  • any: (<T1>(p1) => AnyPredicate<T1>) & (<T1, T2>(p1, p2) => AnyPredicate<T1 | T2>) & (<T1, T2, T3>(p1, p2, p3) => AnyPredicate<T1 | T2 | T3>) & (<T1, T2, T3, T4>(p1, p2, p3, p4) => AnyPredicate<T1 | T2 | T3 | T4>) & (<T1, T2, T3, T4, T5>(p1, p2, p3, p4, p5) => AnyPredicate<T1 | T2 | T3 | T4 | T5>) & (<T1, T2, T3, T4, T5, T6>(p1, p2, p3, p4, p5, p6) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6>) & (<T1, T2, T3, T4, T5, T6, T7>(p1, p2, p3, p4, p5, p6, p7) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6 | T7>) & (<T1, T2, T3, T4, T5, T6, T7, T8>(p1, p2, p3, p4, p5, p6, p7, p8) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>) & (<T1, T2, T3, T4, T5, T6, T7, T8, T9>(p1, p2, p3, p4, p5, p6, p7, p8, p9) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>) & (<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) => AnyPredicate<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>) & ((...predicate) => AnyPredicate)

    Test that the value matches at least one of the given predicates.

  • Readonly array: ArrayPredicate

    Test the value to be an array.

  • Readonly arrayBuffer: ArrayBufferPredicate<ArrayBuffer>

    Test the value to be a ArrayBuffer.

  • Readonly bigint: BigIntPredicate

    Test the value to be an bigint.

  • Readonly boolean: BooleanPredicate

    Test the value to be a boolean.

  • Readonly buffer: Predicate<Buffer>

    Test the value to be a Buffer.

  • Readonly dataView: DataViewPredicate

    Test the value to be a DataView.

  • Readonly date: DatePredicate

    Test the value to be a Date.

  • Readonly error: ErrorPredicate

    Test the value to be an Error.

  • Readonly float32Array: TypedArrayPredicate<Float32Array>

    Test the value to be a Float32Array.

  • Readonly float64Array: TypedArrayPredicate<Float64Array>

    Test the value to be a Float64Array.

  • Readonly function: Predicate<Function>

    Test the value to be a Function.

  • Readonly int16Array: TypedArrayPredicate<Int16Array>

    Test the value to be a Int16Array.

  • Readonly int32Array: TypedArrayPredicate<Int32Array>

    Test the value to be a Int32Array.

  • Readonly int8Array: TypedArrayPredicate<Int8Array>

    Test the value to be a Int8Array.

  • Readonly iterable: Predicate<Iterable<unknown>>

    Test the value to be Iterable.

  • Readonly map: MapPredicate

    Test the value to be a Map.

  • Readonly nan: Predicate<number>

    Test the value to be not a number.

  • Readonly null: Predicate<null>

    Test the value to be null.

  • Readonly nullOrUndefined: Predicate<null | undefined>

    Test the value to be null or undefined.

  • Readonly number: NumberPredicate

    Test the value to be a number.

  • Readonly object: ObjectPredicate

    Test the value to be an object.

  • Readonly promise: Predicate<Promise<unknown>>

    Test the value to be a Promise.

  • Readonly regExp: Predicate<RegExp>

    Test the value to be a RegExp.

  • Readonly set: SetPredicate

    Test the value to be a Set.

  • Readonly sharedArrayBuffer: ArrayBufferPredicate<SharedArrayBuffer>

    Test the value to be a SharedArrayBuffer.

  • Readonly string: StringPredicate

    Test the value to be a string.

  • Readonly symbol: Predicate<symbol>

    Test the value to be a Symbol.

  • Readonly typedArray: TypedArrayPredicate<TypedArray>

    Test the value to be a typed array.

  • Readonly uint16Array: TypedArrayPredicate<Uint16Array>

    Test the value to be a Uint16Array.

  • Readonly uint32Array: TypedArrayPredicate<Uint32Array>

    Test the value to be a Uint32Array.

  • Readonly uint8Array: TypedArrayPredicate<Uint8Array>

    Test the value to be a Uint8Array.

  • Readonly uint8ClampedArray: TypedArrayPredicate<Uint8ClampedArray>

    Test the value to be a Uint8ClampedArray.

  • Readonly undefined: Predicate<undefined>

    Test the value to be undefined.

  • Readonly weakMap: WeakMapPredicate

    Test the value to be a WeakMap.

  • Readonly weakSet: WeakSetPredicate

    Test the value to be a WeakSet.