@augment-vir/assert 30.0.4 → 30.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assertions/boolean.d.ts +2 -2
- package/dist/assertions/boundary.d.ts +2 -2
- package/dist/assertions/enum.d.ts +2 -2
- package/dist/assertions/equality/entry-equality.d.ts +2 -2
- package/dist/assertions/equality/json-equality.d.ts +2 -2
- package/dist/assertions/equality/json-equality.js +1 -1
- package/dist/assertions/equality/simple-equality.d.ts +2 -2
- package/dist/assertions/equality/ts-type-equality.d.ts +1 -1
- package/dist/assertions/extendable-assertions.d.ts +43 -914
- package/dist/assertions/http.d.ts +1 -1
- package/dist/assertions/instance.d.ts +3 -3
- package/dist/assertions/keys.d.ts +3 -3
- package/dist/assertions/keys.js +1 -1
- package/dist/assertions/length.d.ts +2 -2
- package/dist/assertions/nullish.d.ts +2 -2
- package/dist/assertions/output.d.ts +2 -2
- package/dist/assertions/primitive.d.ts +3 -3
- package/dist/assertions/promise.d.ts +1 -1
- package/dist/assertions/runtime-type.d.ts +3 -3
- package/dist/assertions/throws.d.ts +2 -2
- package/dist/assertions/uuid.d.ts +2 -2
- package/dist/assertions/values.d.ts +2 -2
- package/dist/augments/guards/assert-wrap.d.ts +3 -254
- package/dist/augments/guards/assert.d.ts +4 -155
- package/dist/augments/guards/assert.js +6 -3
- package/dist/augments/guards/check-wrap.d.ts +4 -255
- package/dist/augments/guards/check-wrap.js +1 -1
- package/dist/augments/guards/check.d.ts +4 -255
- package/dist/augments/guards/wait-until.d.ts +3 -229
- package/dist/guard-types/assert-wrap-function.d.ts +2 -2
- package/dist/guard-types/check-function.d.ts +2 -2
- package/dist/guard-types/check-wrap-wrapper-function.d.ts +3 -3
- package/dist/guard-types/guard-override.d.ts +1 -1
- package/dist/guard-types/wait-until-function.d.ts +3 -4
- package/dist/index.d.ts +1 -1
- package/dist/test-timeout.mock.d.ts +2 -2
- package/package.json +2 -2
- package/dist/assertions/output.example.d.ts +0 -1
- package/dist/assertions/output.example.js +0 -13
- package/dist/assertions/runtime-type.example.d.ts +0 -1
- package/dist/assertions/runtime-type.example.js +0 -3
- package/dist/assertions/throws.example.d.ts +0 -1
- package/dist/assertions/throws.example.js +0 -11
- package/dist/augments/assertion.error.example.d.ts +0 -1
- package/dist/augments/assertion.error.example.js +0 -3
- package/dist/augments/guards/assert-wrap.example.d.ts +0 -1
- package/dist/augments/guards/assert-wrap.example.js +0 -9
- package/dist/augments/guards/assert.example.d.ts +0 -1
- package/dist/augments/guards/assert.example.js +0 -4
- package/dist/augments/guards/check-wrap.example.d.ts +0 -1
- package/dist/augments/guards/check-wrap.example.js +0 -9
- package/dist/augments/guards/check.example.d.ts +0 -1
- package/dist/augments/guards/check.example.js +0 -5
- package/dist/augments/guards/wait-until.example.d.ts +0 -1
- package/dist/augments/guards/wait-until.example.js +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus, type HttpStatusByCategory, type HttpStatusCategory, type MaybePromise, type NarrowToExpected } from '@augment-vir/core';
|
|
2
2
|
import { autoGuardSymbol } from '../guard-types/guard-override.js';
|
|
3
|
-
import type
|
|
3
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
declare function isHttpStatus(actual: unknown, failureMessage?: string | undefined): asserts actual is HttpStatus;
|
|
5
5
|
declare function isHttpStatusCategory<const Actual, const Category extends HttpStatusCategory>(actual: Actual, category: Category, failureMessage?: string | undefined): asserts actual is NarrowToExpected<Actual, HttpStatusByCategory<Category>>;
|
|
6
6
|
export declare const httpGuards: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MaybePromise } from '@augment-vir/core';
|
|
2
|
-
import { Constructor } from 'type-fest';
|
|
3
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
1
|
+
import { type MaybePromise } from '@augment-vir/core';
|
|
2
|
+
import { type Constructor } from 'type-fest';
|
|
3
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
/** Wraps the JavaScript built-in "instanceof" in a type guard assertion. */
|
|
5
5
|
declare function instanceOf<const Instance>(instance: unknown,
|
|
6
6
|
/** The constructor that the "instance" input will be checked against. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MaybePromise, NarrowToExpected, type RequiredKeysOf } from '@augment-vir/core';
|
|
2
|
-
import { SetRequired } from 'type-fest';
|
|
3
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
1
|
+
import { type MaybePromise, type NarrowToExpected, type RequiredKeysOf } from '@augment-vir/core';
|
|
2
|
+
import { type SetRequired } from 'type-fest';
|
|
3
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
declare function isKeyOf<const Parent>(key: PropertyKey, parent: Parent, failureMessage?: string | undefined): asserts key is keyof Parent;
|
|
5
5
|
declare function isNotKeyOf<const Key extends PropertyKey, const Parent>(key: Key, parent: Parent, failureMessage?: string | undefined): asserts key is Exclude<Key, RequiredKeysOf<Parent>>;
|
|
6
6
|
/** Helper type for `hasKey`. */
|
package/dist/assertions/keys.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify } from '@augment-vir/core';
|
|
1
|
+
import { stringify, } from '@augment-vir/core';
|
|
2
2
|
import { AssertionError } from '../augments/assertion.error.js';
|
|
3
3
|
import { createCheck } from '../guard-types/check-function.js';
|
|
4
4
|
import { autoGuard } from '../guard-types/guard-override.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
1
|
+
import { type AnyObject, type AtLeastTuple, type MaybePromise, type Tuple } from '@augment-vir/core';
|
|
2
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
3
3
|
declare function isLengthAtLeast<const Element, const Length extends number>(actual: ReadonlyArray<Element | undefined>, length: Length, failureMessage?: string | undefined): asserts actual is AtLeastTuple<Element, Length>;
|
|
4
4
|
declare function isLengthAtLeast(actual: string | AnyObject, length: number, failureMessage?: string | undefined): void;
|
|
5
5
|
declare function isLengthExactly<const Element, const Length extends number>(actual: ReadonlyArray<Element | undefined>, length: Length, failureMessage?: string | undefined): asserts actual is Tuple<Element, Length>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MaybePromise } from '@augment-vir/core';
|
|
1
|
+
import { type MaybePromise } from '@augment-vir/core';
|
|
2
2
|
import { autoGuardSymbol } from '../guard-types/guard-override.js';
|
|
3
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
3
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
declare function isDefined<const Actual>(
|
|
5
5
|
/** The value to check. */
|
|
6
6
|
input: Actual,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnyFunction } from '@augment-vir/core';
|
|
1
|
+
import { type AnyFunction } from '@augment-vir/core';
|
|
2
2
|
import type { IsAny } from 'type-fest';
|
|
3
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
3
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
/**
|
|
5
5
|
* A customer asserter for `.output` guards (`assert.output`, `check.output`, etc.). This is
|
|
6
6
|
* typically not necessary, as the `.output` guards already perform deep equality checks by
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { Primitive } from 'type-fest';
|
|
1
|
+
import { type MaybePromise } from '@augment-vir/core';
|
|
2
|
+
import { type Primitive } from 'type-fest';
|
|
3
3
|
import { autoGuardSymbol } from '../guard-types/guard-override.js';
|
|
4
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
5
5
|
export type { Primitive } from 'type-fest';
|
|
6
6
|
/** Asserts that the given value is a primitive. */
|
|
7
7
|
declare function isPrimitive(input: unknown, failureMessage?: string | undefined): asserts input is Primitive;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { autoGuardSymbol } from '../guard-types/guard-override.js';
|
|
2
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
2
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
3
3
|
declare function isPromiseLike(actual: unknown, failureMessage?: string | undefined): asserts actual is PromiseLike<any>;
|
|
4
4
|
declare function isNotPromiseLike<const Actual>(actual: Actual, failureMessage?: string | undefined): asserts actual is Exclude<Actual, PromiseLike<any>>;
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnyFunction, MaybePromise, NarrowToActual, NarrowToExpected, UnknownObject } from '@augment-vir/core';
|
|
1
|
+
import { type AnyFunction, type MaybePromise, type NarrowToActual, type NarrowToExpected, type UnknownObject } from '@augment-vir/core';
|
|
2
2
|
import { autoGuardSymbol } from '../guard-types/guard-override.js';
|
|
3
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
3
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
type ArrayNarrow<Actual> = Extract<Actual, unknown[]> extends never ? Extract<Actual, ReadonlyArray<unknown>> extends never ? unknown[] extends Actual ? unknown[] : never : Extract<Actual, ReadonlyArray<unknown>> : Extract<Actual, unknown[]>;
|
|
5
5
|
declare function isNotArray<const Actual>(actual: Actual, failureMessage?: string | undefined): asserts actual is Exclude<Actual, ReadonlyArray<unknown>>;
|
|
6
6
|
declare function isNotBigInt<const Actual>(actual: Actual, failureMessage?: string | undefined): asserts actual is Exclude<Actual, bigint>;
|
|
@@ -477,7 +477,7 @@ export declare const runtimeTypeGuards: {
|
|
|
477
477
|
* @see
|
|
478
478
|
* - {@link check.isNotFunction} : the opposite check.
|
|
479
479
|
*/
|
|
480
|
-
isFunction: <const Actual>(actual: Actual
|
|
480
|
+
isFunction: <const Actual>(actual: Actual) => actual is NarrowToActual<Actual, AnyFunction>;
|
|
481
481
|
/**
|
|
482
482
|
* Checks that a value is exactly `null`.
|
|
483
483
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MaybePromise, PartialWithNullable, TypedFunction } from '@augment-vir/core';
|
|
1
|
+
import { type MaybePromise, type PartialWithNullable, type TypedFunction } from '@augment-vir/core';
|
|
2
2
|
import { autoGuardSymbol } from '../guard-types/guard-override.js';
|
|
3
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
3
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
declare function isError(actual: unknown, matchOptions?: ErrorMatchOptions | undefined, failureMessage?: string | undefined): asserts actual is Error;
|
|
5
5
|
/**
|
|
6
6
|
* A type that represents possible error matching patterns. This is used by the `.throws` and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MaybePromise, Uuid } from '@augment-vir/core';
|
|
1
|
+
import { type MaybePromise, type Uuid } from '@augment-vir/core';
|
|
2
2
|
import { autoGuardSymbol } from '../guard-types/guard-override.js';
|
|
3
|
-
import { WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
3
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
/** Checks if the input string is a valid v4 UUID. */
|
|
5
5
|
declare function isUuid(actual: unknown, failureMessage?: string | undefined): asserts actual is Uuid;
|
|
6
6
|
declare function isNotUuid<const Actual>(actual: Actual, failureMessage?: string | undefined): asserts actual is Exclude<Actual, Uuid>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NarrowToActual, NarrowToExpected } from '@augment-vir/core';
|
|
2
|
-
import { AnyObject, MaybePromise, Values } from '@augment-vir/core';
|
|
2
|
+
import { type AnyObject, type MaybePromise, type Values } from '@augment-vir/core';
|
|
3
3
|
import type { EmptyObject } from 'type-fest';
|
|
4
4
|
import { autoGuardSymbol } from '../guard-types/guard-override.js';
|
|
5
|
-
import type
|
|
5
|
+
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
6
6
|
declare function hasValue(parent: object, value: unknown, failureMessage?: string | undefined): void;
|
|
7
7
|
declare function lacksValue(parent: object, value: unknown, failureMessage?: string | undefined): void;
|
|
8
8
|
declare function hasValues(parent: object, values: ReadonlyArray<unknown>, failureMessage?: string | undefined): void;
|
|
@@ -1,257 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<const FunctionToCall extends import("@augment-vir/core").AnyFunction>(asserter: import("../assertion-exports.js").CustomOutputAsserter<NoInfer<FunctionToCall>>, functionToCall: FunctionToCall, inputs: Parameters<NoInfer<FunctionToCall>>, expectedOutput: Awaited<ReturnType<NoInfer<FunctionToCall>>>, failureMessage?: string | undefined): Promise<any> extends ReturnType<NoInfer<FunctionToCall>> ? import("type-fest").IsAny<ReturnType<NoInfer<FunctionToCall>>> extends true ? void : Promise<void> : void;
|
|
5
|
-
};
|
|
6
|
-
isHttpStatus: (actual: unknown, failureMessage?: string | undefined) => asserts actual is import("@augment-vir/core").HttpStatus;
|
|
7
|
-
isHttpStatusCategory: <const Actual, const Category extends import("@augment-vir/core").HttpStatusCategory>(actual: Actual, category: Category, failureMessage?: string | undefined) => asserts actual is import("@augment-vir/core").NarrowToExpected<Actual, import("@augment-vir/core").HttpStatusByCategory<Category>>;
|
|
8
|
-
hasValue: (parent: object, value: unknown, failureMessage?: string | undefined) => void;
|
|
9
|
-
lacksValue: (parent: object, value: unknown, failureMessage?: string | undefined) => void;
|
|
10
|
-
hasValues: (parent: object, values: ReadonlyArray<unknown>, failureMessage?: string | undefined) => void;
|
|
11
|
-
lacksValues: (parent: object, values: ReadonlyArray<unknown>, failureMessage?: string | undefined) => void;
|
|
12
|
-
isIn: typeof import("../../assertions/values.js").isIn;
|
|
13
|
-
isNotIn: <const Parent extends object | string, const Child>(child: Child, parent: Parent, failureMessage?: string | undefined) => asserts child is Exclude<Child, import("@augment-vir/core").Values<Parent>>;
|
|
14
|
-
isEmpty: <const Actual extends import("../assertion-exports.js").CanBeEmpty>(actual: Actual, failureMessage?: string | undefined) => asserts actual is import("@augment-vir/core").NarrowToActual<Actual, import("../assertion-exports.js").Empty>;
|
|
15
|
-
isNotEmpty: <const Actual extends import("../assertion-exports.js").CanBeEmpty>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, import("../assertion-exports.js").Empty>;
|
|
16
|
-
isUuid: (actual: unknown, failureMessage?: string | undefined) => asserts actual is import("@augment-vir/core").Uuid;
|
|
17
|
-
isNotUuid: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, import("@augment-vir/core").Uuid>;
|
|
18
|
-
throws: {
|
|
19
|
-
(callbackOrPromise: import("@augment-vir/core").TypedFunction<void, never>, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined): void;
|
|
20
|
-
(callbackOrPromise: import("@augment-vir/core").TypedFunction<void, Promise<any>> | Promise<any>, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined): Promise<void>;
|
|
21
|
-
(callback: import("@augment-vir/core").TypedFunction<void, any>, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined): void;
|
|
22
|
-
(callback: import("@augment-vir/core").TypedFunction<void, import("@augment-vir/core").MaybePromise<any>> | Promise<any>, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined): import("@augment-vir/core").MaybePromise<void>;
|
|
23
|
-
};
|
|
24
|
-
isError: (actual: unknown, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined) => asserts actual is Error;
|
|
25
|
-
strictEquals: typeof import("../../assertions/equality/simple-equality.js").strictEquals;
|
|
26
|
-
notStrictEquals: (actual: unknown, expected: unknown, failureMessage?: string | undefined) => void;
|
|
27
|
-
looseEquals: (actual: unknown, expected: unknown, failureMessage?: string | undefined) => void;
|
|
28
|
-
notLooseEquals: (actual: unknown, expected: unknown, failureMessage?: string | undefined) => void;
|
|
29
|
-
deepEquals: typeof import("../../assertions/equality/simple-equality.js").deepEquals;
|
|
30
|
-
notDeepEquals: (actual: unknown, expected: unknown, failureMessage?: string | undefined) => void;
|
|
31
|
-
isArray: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Extract<Actual, unknown[]> extends never ? Extract<Actual, readonly unknown[]> extends never ? unknown[] extends Actual ? Actual & unknown[] : never : Extract<Actual, readonly unknown[]> : Extract<Actual, unknown[]>;
|
|
32
|
-
isBigInt: (actual: unknown, failureMessage?: string | undefined) => asserts actual is bigint;
|
|
33
|
-
isBoolean: (actual: unknown, failureMessage?: string | undefined) => asserts actual is boolean;
|
|
34
|
-
isFunction: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is import("@augment-vir/core").NarrowToActual<Actual, import("@augment-vir/core").AnyFunction>;
|
|
35
|
-
isNull: (actual: unknown, failureMessage?: string | undefined) => asserts actual is null;
|
|
36
|
-
isNumber: (actual: unknown, failureMessage?: string | undefined) => asserts actual is number;
|
|
37
|
-
isObject: (actual: unknown, failureMessage?: string | undefined) => asserts actual is import("@augment-vir/core").UnknownObject;
|
|
38
|
-
isString: (actual: unknown, failureMessage?: string | undefined) => asserts actual is string;
|
|
39
|
-
isSymbol: (actual: unknown, failureMessage?: string | undefined) => asserts actual is symbol;
|
|
40
|
-
isUndefined: (actual: unknown, failureMessage?: string | undefined) => asserts actual is undefined;
|
|
41
|
-
isNotArray: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, ReadonlyArray<unknown>>;
|
|
42
|
-
isNotBigInt: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, bigint>;
|
|
43
|
-
isNotBoolean: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, boolean>;
|
|
44
|
-
isNotFunction: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, import("@augment-vir/core").AnyFunction>;
|
|
45
|
-
isNotNull: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, null>;
|
|
46
|
-
isNotNumber: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, number>;
|
|
47
|
-
isNotObject: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, import("@augment-vir/core").UnknownObject>;
|
|
48
|
-
isNotString: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, string>;
|
|
49
|
-
isNotSymbol: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, symbol>;
|
|
50
|
-
isNotUndefined: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, undefined>;
|
|
51
|
-
matches: (actual: string, expected: RegExp, failureMessage?: string | undefined) => void;
|
|
52
|
-
mismatches: (actual: string, expected: RegExp, failureMessage?: string | undefined) => void;
|
|
53
|
-
isPromiseLike: (actual: unknown, failureMessage?: string | undefined) => asserts actual is PromiseLike<any>;
|
|
54
|
-
isNotPromiseLike: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, PromiseLike<any>>;
|
|
55
|
-
isPromise: (actual: unknown, failureMessage?: string | undefined) => asserts actual is Promise<any>;
|
|
56
|
-
isNotPromise: <const Actual>(actual: Actual, failureMessage?: string | undefined) => asserts actual is Exclude<Actual, Promise<any>>;
|
|
57
|
-
isPropertyKey: (input: unknown, failureMessage?: string | undefined) => asserts input is PropertyKey;
|
|
58
|
-
isNotPropertyKey: <const Actual>(input: Actual, failureMessage?: string | undefined) => asserts input is Exclude<Actual, PropertyKey>;
|
|
59
|
-
isPrimitive: (input: unknown, failureMessage?: string | undefined) => asserts input is import("type-fest").Primitive;
|
|
60
|
-
isNotPrimitive: <const Actual>(input: Actual, failureMessage?: string | undefined) => asserts input is Exclude<Actual, import("type-fest").Primitive>;
|
|
61
|
-
isAbove: (actual: number, expected: number, failureMessage?: string | undefined) => void;
|
|
62
|
-
isAtLeast: (actual: number, expected: number, failureMessage?: string | undefined) => void;
|
|
63
|
-
isBelow: (actual: number, expected: number, failureMessage?: string | undefined) => void;
|
|
64
|
-
isAtMost: (actual: number, expected: number, failureMessage?: string | undefined) => void;
|
|
65
|
-
isNaN: (actual: number, failureMessage?: string | undefined) => void;
|
|
66
|
-
isFinite: (actual: number, failureMessage?: string | undefined) => void;
|
|
67
|
-
isInfinite: (actual: number, failureMessage?: string | undefined) => void;
|
|
68
|
-
isApproximately: (actual: number, expected: number, delta: number, failureMessage?: string | undefined) => void;
|
|
69
|
-
isNotApproximately: (actual: number, expected: number, delta: number, failureMessage?: string | undefined) => void;
|
|
70
|
-
isDefined: <const Actual>(input: Actual, failureMessage?: string | undefined) => asserts input is Exclude<Actual, undefined | null>;
|
|
71
|
-
isNullish: (input: unknown, failureMessage?: string | undefined) => asserts input is null | undefined;
|
|
72
|
-
isLengthAtLeast: {
|
|
73
|
-
<const Element, const Length extends number>(actual: ReadonlyArray<Element | undefined>, length: Length, failureMessage?: string | undefined): asserts actual is import("@augment-vir/core").AtLeastTuple<Element, Length>;
|
|
74
|
-
(actual: string | import("@augment-vir/core").AnyObject, length: number, failureMessage?: string | undefined): void;
|
|
75
|
-
};
|
|
76
|
-
isLengthExactly: {
|
|
77
|
-
<const Element, const Length extends number>(actual: ReadonlyArray<Element | undefined>, length: Length, failureMessage?: string | undefined): asserts actual is import("@augment-vir/core").Tuple<Element, Length>;
|
|
78
|
-
(actual: string | import("@augment-vir/core").AnyObject, length: number, failureMessage?: string | undefined): void;
|
|
79
|
-
};
|
|
80
|
-
isKeyOf: <const Parent>(key: PropertyKey, parent: Parent, failureMessage?: string | undefined) => asserts key is keyof Parent;
|
|
81
|
-
isNotKeyOf: <const Key extends PropertyKey, const Parent>(key: Key, parent: Parent, failureMessage?: string | undefined) => asserts key is Exclude<Key, import("@augment-vir/core").RequiredKeysOf<Parent>>;
|
|
82
|
-
hasKey: <const Key extends PropertyKey, const Parent>(parent: Parent, key: Key, failureMessage?: string | undefined) => asserts parent is Parent & Record<Key, (Key extends keyof Parent ? import("type-fest").SetRequired<Parent, Key>[Key] : Key extends keyof Extract<Parent, Record<Key, any>> ? import("type-fest").SetRequired<Extract<Parent, Record<Key, any>>, Key>[Key] : never) extends never ? unknown : Key extends keyof Parent ? import("type-fest").SetRequired<Parent, Key>[Key] : Key extends keyof Extract<Parent, Record<Key, any>> ? import("type-fest").SetRequired<Extract<Parent, Record<Key, any>>, Key>[Key] : never>;
|
|
83
|
-
lacksKey: <const Parent, const Key extends PropertyKey>(parent: Parent, key: Key, failureMessage?: string | undefined) => asserts parent is Exclude<Parent, Record<Key, any>>;
|
|
84
|
-
hasKeys: <const Keys extends PropertyKey, const Parent>(parent: Parent, keys: ReadonlyArray<Keys>, failureMessage?: string | undefined) => asserts parent is Parent & Record<Keys, (Keys extends keyof Parent ? import("type-fest").SetRequired<Parent, Keys>[Keys] : Keys extends keyof Extract<Parent, Record<Keys, any>> ? import("type-fest").SetRequired<Extract<Parent, Record<Keys, any>>, Keys>[Keys] : never) extends never ? unknown : Keys extends keyof Parent ? import("type-fest").SetRequired<Parent, Keys>[Keys] : Keys extends keyof Extract<Parent, Record<Keys, any>> ? import("type-fest").SetRequired<Extract<Parent, Record<Keys, any>>, Keys>[Keys] : never>;
|
|
85
|
-
lacksKeys: <const Parent, const Key extends PropertyKey>(parent: Parent, keys: ReadonlyArray<Key>, failureMessage?: string | undefined) => asserts parent is Exclude<Parent, Partial<Record<Key, any>>>;
|
|
86
|
-
jsonEquals: <const Actual, const Expected extends Actual>(actual: Actual, expected: Expected, failureMessage?: string | undefined) => asserts actual is Expected;
|
|
87
|
-
notJsonEquals: (actual: unknown, expected: unknown, failureMessage?: string | undefined) => void;
|
|
88
|
-
instanceOf: <const Instance>(instance: unknown, constructor: import("type-fest").Constructor<Instance>, failureMessage?: string | undefined) => asserts instance is Instance;
|
|
89
|
-
notInstanceOf: <const Actual, const Instance>(instance: Actual, constructor: import("type-fest").Constructor<Instance>, failureMessage?: string | undefined) => asserts instance is Exclude<Actual, Instance>;
|
|
90
|
-
isEnumValue: typeof import("../../assertions/enum.js").isEnumValue;
|
|
91
|
-
isNotEnumValue: <const Actual, const Expected extends import("@augment-vir/core").EnumBaseType>(child: Actual, checkEnum: Expected, failureMessage?: string | undefined) => asserts child is Exclude<Actual, Expected[keyof Expected] | `${Expected[keyof Expected]}`>;
|
|
92
|
-
entriesEqual: <const Actual extends object, const Expected extends Actual>(actual: Actual, expected: Expected, failureMessage?: string | undefined) => asserts actual is Expected;
|
|
93
|
-
notEntriesEqual: (actual: object, expected: object, failureMessage?: string | undefined) => void;
|
|
94
|
-
endsWith: {
|
|
95
|
-
<const ArrayElement>(parent: ReadonlyArray<ArrayElement>, child: ArrayElement, failureMessage?: string | undefined): void;
|
|
96
|
-
(parent: string, child: string, failureMessage?: string | undefined): void;
|
|
97
|
-
(parent: string | ReadonlyArray<string>, child: string, failureMessage?: string | undefined): void;
|
|
98
|
-
};
|
|
99
|
-
endsWithout: {
|
|
100
|
-
<const ArrayElement>(parent: ReadonlyArray<ArrayElement>, child: ArrayElement, failureMessage?: string | undefined): void;
|
|
101
|
-
(parent: string, child: string, failureMessage?: string | undefined): void;
|
|
102
|
-
(parent: string | ReadonlyArray<string>, child: string, failureMessage?: string | undefined): void;
|
|
103
|
-
};
|
|
104
|
-
startsWith: {
|
|
105
|
-
<const ArrayElement>(parent: ReadonlyArray<ArrayElement>, child: ArrayElement, failureMessage?: string | undefined): void;
|
|
106
|
-
(parent: string, child: string, failureMessage?: string | undefined): void;
|
|
107
|
-
(parent: string | ReadonlyArray<string>, child: string, failureMessage?: string | undefined): void;
|
|
108
|
-
};
|
|
109
|
-
startsWithout: {
|
|
110
|
-
<const ArrayElement>(parent: ReadonlyArray<ArrayElement>, child: ArrayElement, failureMessage?: string | undefined): void;
|
|
111
|
-
(parent: string, child: string, failureMessage?: string | undefined): void;
|
|
112
|
-
(parent: string | ReadonlyArray<string>, child: string, failureMessage?: string | undefined): void;
|
|
113
|
-
};
|
|
114
|
-
isFalse: (input: unknown, failureMessage?: string | undefined) => asserts input is false;
|
|
115
|
-
isFalsy: (input: unknown, failureMessage?: string | undefined) => asserts input is import("../assertion-exports.js").FalsyValue;
|
|
116
|
-
isTrue: (input: unknown, failureMessage?: string | undefined) => asserts input is true;
|
|
117
|
-
isTruthy: <const Actual>(input: Actual, failureMessage?: string | undefined) => asserts input is import("../assertion-exports.js").Truthy<Actual>;
|
|
118
|
-
}, {
|
|
119
|
-
isFalse: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
120
|
-
isFalsy: <T>(input: T, failureMessage?: string | undefined) => import("../assertion-exports.js").Falsy<T>;
|
|
121
|
-
isTrue: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
122
|
-
isTruthy: <T>(input: T, failureMessage?: string | undefined) => import("../assertion-exports.js").Truthy<T>;
|
|
123
|
-
} & {
|
|
124
|
-
strictEquals: <Actual, Expected extends Actual>(actual: Actual, expected: Expected, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Actual, Expected>;
|
|
125
|
-
notStrictEquals: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
126
|
-
looseEquals: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
127
|
-
notLooseEquals: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
128
|
-
deepEquals: <Actual, Expected extends Actual>(actual: Actual, expected: Expected, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Actual, Expected>;
|
|
129
|
-
notDeepEquals: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
130
|
-
} & {
|
|
131
|
-
output: {
|
|
132
|
-
<const FunctionToCall extends import("@augment-vir/core").AnyFunction>(functionToCall: FunctionToCall, inputs: Parameters<NoInfer<FunctionToCall>>, expectedOutput: Awaited<ReturnType<NoInfer<FunctionToCall>>>, failureMessage?: string | undefined): Promise<any> extends ReturnType<NoInfer<FunctionToCall>> ? import("type-fest").IsAny<ReturnType<FunctionToCall>> extends true ? Awaited<ReturnType<NoInfer<FunctionToCall>>> : Promise<Awaited<ReturnType<NoInfer<FunctionToCall>>>> : Awaited<ReturnType<NoInfer<FunctionToCall>>>;
|
|
133
|
-
<const FunctionToCall extends import("@augment-vir/core").AnyFunction>(asserter: import("../assertion-exports.js").CustomOutputAsserter<NoInfer<FunctionToCall>>, functionToCall: FunctionToCall, inputs: Parameters<NoInfer<FunctionToCall>>, expectedOutput: Awaited<ReturnType<NoInfer<FunctionToCall>>>, failureMessage?: string | undefined): Promise<any> extends ReturnType<NoInfer<FunctionToCall>> ? import("type-fest").IsAny<ReturnType<FunctionToCall>> extends true ? Awaited<ReturnType<NoInfer<FunctionToCall>>> : Promise<Awaited<ReturnType<NoInfer<FunctionToCall>>>> : Awaited<ReturnType<NoInfer<FunctionToCall>>>;
|
|
134
|
-
};
|
|
135
|
-
} & {
|
|
136
|
-
isArray: <Actual>(actual: Actual) => Extract<Actual, unknown[]> extends never ? Extract<Actual, readonly unknown[]> extends never ? unknown[] extends Actual ? Actual & unknown[] : never : Extract<Actual, readonly unknown[]> : Extract<Actual, unknown[]>;
|
|
137
|
-
isBigInt: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
138
|
-
isBoolean: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
139
|
-
isFunction: <const Actual>(actual: Actual, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToActual<Actual, import("@augment-vir/core").AnyFunction>;
|
|
140
|
-
isNull: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
141
|
-
isNumber: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
142
|
-
isObject: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
143
|
-
isString: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
144
|
-
isSymbol: <const Actual>(actual: Actual, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Actual, symbol>;
|
|
145
|
-
isUndefined: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
146
|
-
isNotArray: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, ReadonlyArray<unknown>>;
|
|
147
|
-
isNotBigInt: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, bigint>;
|
|
148
|
-
isNotBoolean: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, boolean>;
|
|
149
|
-
isNotFunction: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, import("@augment-vir/core").AnyFunction>;
|
|
150
|
-
isNotNull: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, null>;
|
|
151
|
-
isNotNumber: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, number>;
|
|
152
|
-
isNotObject: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, import("@augment-vir/core").UnknownObject>;
|
|
153
|
-
isNotString: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, string>;
|
|
154
|
-
isNotSymbol: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, symbol>;
|
|
155
|
-
isNotUndefined: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, undefined>;
|
|
156
|
-
} & {
|
|
157
|
-
throws: {
|
|
158
|
-
(callbackOrPromise: import("@augment-vir/core").TypedFunction<void, never>, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined): Error;
|
|
159
|
-
(callbackOrPromise: import("@augment-vir/core").TypedFunction<void, Promise<any>> | Promise<any>, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined): Promise<Error>;
|
|
160
|
-
(callback: import("@augment-vir/core").TypedFunction<void, any>, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined): Error;
|
|
161
|
-
(callback: import("@augment-vir/core").TypedFunction<void, import("@augment-vir/core").MaybePromise<any>> | Promise<any>, matchOptions?: import("../assertion-exports.js").ErrorMatchOptions | undefined, failureMessage?: string | undefined): import("@augment-vir/core").MaybePromise<Error>;
|
|
162
|
-
};
|
|
163
|
-
isError: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
164
|
-
} & {
|
|
165
|
-
hasValue: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
166
|
-
lacksValue: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
167
|
-
hasValues: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
168
|
-
lacksValues: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
169
|
-
isIn: <const Child, const Parent>(child: Child, parent: Parent, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Child, import("@augment-vir/core").Values<Parent>>;
|
|
170
|
-
isNotIn: <const Parent, const Child>(child: Child, parent: Parent, failureMessage?: string | undefined) => Exclude<Child, import("@augment-vir/core").Values<Parent>>;
|
|
171
|
-
isEmpty: <const Actual extends import("../assertion-exports.js").CanBeEmpty>(actual: Actual, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToActual<Actual, import("../assertion-exports.js").Empty>;
|
|
172
|
-
isNotEmpty: <const Actual extends import("../assertion-exports.js").CanBeEmpty>(actual: Actual) => Exclude<Actual, import("../assertion-exports.js").Empty>;
|
|
173
|
-
} & {
|
|
174
|
-
endsWith: {
|
|
175
|
-
<const ArrayElement>(parent: ReadonlyArray<ArrayElement>, child: ArrayElement, failureMessage?: string | undefined): typeof parent;
|
|
176
|
-
(parent: string, child: string, failureMessage?: string | undefined): typeof parent;
|
|
177
|
-
(parent: string | ReadonlyArray<string>, child: string, failureMessage?: string | undefined): typeof parent;
|
|
178
|
-
};
|
|
179
|
-
endsWithout: {
|
|
180
|
-
<const ArrayElement>(parent: ReadonlyArray<ArrayElement>, child: ArrayElement, failureMessage?: string | undefined): typeof parent;
|
|
181
|
-
(parent: string, child: string, failureMessage?: string | undefined): typeof parent;
|
|
182
|
-
(parent: string | ReadonlyArray<string>, child: string, failureMessage?: string | undefined): typeof parent;
|
|
183
|
-
};
|
|
184
|
-
startsWith: {
|
|
185
|
-
<const ArrayElement>(parent: ReadonlyArray<ArrayElement>, child: ArrayElement, failureMessage?: string | undefined): typeof parent;
|
|
186
|
-
(parent: string, child: string, failureMessage?: string | undefined): typeof parent;
|
|
187
|
-
(parent: string | ReadonlyArray<string>, child: string, failureMessage?: string | undefined): typeof parent;
|
|
188
|
-
};
|
|
189
|
-
startsWithout: {
|
|
190
|
-
<const ArrayElement>(parent: ReadonlyArray<ArrayElement>, child: ArrayElement, failureMessage?: string | undefined): typeof parent;
|
|
191
|
-
(parent: string, child: string, failureMessage?: string | undefined): typeof parent;
|
|
192
|
-
(parent: string | ReadonlyArray<string>, child: string, failureMessage?: string | undefined): typeof parent;
|
|
193
|
-
};
|
|
194
|
-
} & {
|
|
195
|
-
isEnumValue: <const Actual, const Expected extends import("@augment-vir/core").EnumBaseType>(child: Actual, checkEnum: Expected, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Actual, Expected[keyof Expected]>;
|
|
196
|
-
isNotEnumValue: <const Actual, const Expected extends import("@augment-vir/core").EnumBaseType>(child: Actual, checkEnum: Expected, failureMessage?: string | undefined) => Exclude<Actual, Expected[keyof Expected] | `${Expected[keyof Expected]}`>;
|
|
197
|
-
} & {
|
|
198
|
-
entriesEqual: <Actual, Expected extends Actual>(actual: Actual, expected: Expected, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Actual, Expected>;
|
|
199
|
-
notEntriesEqual: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
200
|
-
} & {
|
|
201
|
-
jsonEquals: <Actual, Expected extends Actual>(actual: Actual, expected: Expected, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Actual, Expected>;
|
|
202
|
-
notJsonEquals: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
203
|
-
} & {
|
|
204
|
-
isHttpStatus: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
205
|
-
isHttpStatusCategory: <const Actual, const Category extends import("@augment-vir/core").HttpStatusCategory>(actual: Actual, category: Category, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Actual, import("@augment-vir/core").HttpStatusByCategory<Category>>;
|
|
206
|
-
} & {
|
|
207
|
-
instanceOf: <const Instance>(instance: unknown, constructor: import("type-fest").Constructor<Instance>, failureMessage?: string | undefined) => Instance;
|
|
208
|
-
notInstanceOf: <const Actual, const Instance>(instance: Actual, constructor: import("type-fest").Constructor<Instance>, failureMessage?: string | undefined) => Exclude<Actual, Instance>;
|
|
209
|
-
} & {
|
|
210
|
-
isKeyOf: <const Key extends PropertyKey, const Parent>(key: Key, parent: Parent, failureMessage?: string | undefined) => import("@augment-vir/core").NarrowToExpected<Key, keyof Parent>;
|
|
211
|
-
isNotKeyOf: <const Key extends PropertyKey, const Parent>(key: Key, parent: Parent, failureMessage?: string | undefined) => Exclude<Key, import("@augment-vir/core").RequiredKeysOf<Parent>>;
|
|
212
|
-
hasKey: <const Parent, const Key extends PropertyKey>(parent: Parent, key: Key, failureMessage?: string | undefined) => Parent & Record<Key, (Key extends keyof Parent ? import("type-fest").SetRequired<Parent, Key>[Key] : Key extends keyof Extract<Parent, Record<Key, any>> ? import("type-fest").SetRequired<Extract<Parent, Record<Key, any>>, Key>[Key] : never) extends never ? unknown : Key extends keyof Parent ? import("type-fest").SetRequired<Parent, Key>[Key] : Key extends keyof Extract<Parent, Record<Key, any>> ? import("type-fest").SetRequired<Extract<Parent, Record<Key, any>>, Key>[Key] : never>;
|
|
213
|
-
lacksKey: <const Parent, const Key extends PropertyKey>(parent: Parent, key: Key, failureMessage?: string | undefined) => Exclude<Parent, Record<Key, any>>;
|
|
214
|
-
hasKeys: <const Keys extends PropertyKey, const Parent>(parent: Parent, keys: ReadonlyArray<Keys>, failureMessage?: string | undefined) => Parent & Record<Keys, (Keys extends keyof Parent ? import("type-fest").SetRequired<Parent, Keys>[Keys] : Keys extends keyof Extract<Parent, Record<Keys, any>> ? import("type-fest").SetRequired<Extract<Parent, Record<Keys, any>>, Keys>[Keys] : never) extends never ? unknown : Keys extends keyof Parent ? import("type-fest").SetRequired<Parent, Keys>[Keys] : Keys extends keyof Extract<Parent, Record<Keys, any>> ? import("type-fest").SetRequired<Extract<Parent, Record<Keys, any>>, Keys>[Keys] : never>;
|
|
215
|
-
lacksKeys: <const Parent, const Key extends PropertyKey>(parent: Parent, key: ReadonlyArray<Key>, failureMessage?: string | undefined) => Exclude<Parent, Partial<Record<Key, any>>>;
|
|
216
|
-
} & {
|
|
217
|
-
isLengthAtLeast: {
|
|
218
|
-
<Element, Length extends number>(actual: ReadonlyArray<Element | undefined>, length: Length): import("@augment-vir/core").AtLeastTuple<Element, Length>;
|
|
219
|
-
<Actual extends string | import("@augment-vir/core").AnyObject>(actual: Actual, length: number): Actual;
|
|
220
|
-
};
|
|
221
|
-
isLengthExactly: {
|
|
222
|
-
<Element, Length extends number>(actual: ReadonlyArray<Element | undefined>, length: Length): import("@augment-vir/core").Tuple<Element, Length>;
|
|
223
|
-
<Actual extends string | import("@augment-vir/core").AnyObject>(actual: Actual, length: number): Actual;
|
|
224
|
-
};
|
|
225
|
-
} & {
|
|
226
|
-
isDefined: <Actual>(input: Actual, failureMessage?: string | undefined) => Exclude<Actual, undefined | null>;
|
|
227
|
-
isNullish: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
228
|
-
} & {
|
|
229
|
-
isAbove: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
230
|
-
isAtLeast: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
231
|
-
isBelow: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
232
|
-
isAtMost: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
233
|
-
isNaN: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
234
|
-
isFinite: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
235
|
-
isInfinite: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
236
|
-
isApproximately: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
237
|
-
isNotApproximately: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
238
|
-
} & {
|
|
239
|
-
isNotPrimitive: <const Actual>(input: Actual, failureMessage?: string | undefined) => Exclude<Actual, import("type-fest").Primitive>;
|
|
240
|
-
isNotPropertyKey: <const Actual>(input: Actual, failureMessage?: string | undefined) => Exclude<Actual, PropertyKey>;
|
|
241
|
-
isPrimitive: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
242
|
-
isPropertyKey: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
243
|
-
} & {
|
|
244
|
-
isPromiseLike: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Extract<Actual, PromiseLike<any>>;
|
|
245
|
-
isNotPromiseLike: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, PromiseLike<any>>;
|
|
246
|
-
isPromise: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Extract<Actual, Promise<any>>;
|
|
247
|
-
isNotPromise: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, Promise<any>>;
|
|
248
|
-
} & {
|
|
249
|
-
matches: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
250
|
-
mismatches: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
251
|
-
} & {
|
|
252
|
-
isUuid: typeof import("../../guard-types/guard-override.js").autoGuardSymbol;
|
|
253
|
-
isNotUuid: <const Actual>(actual: Actual, failureMessage?: string | undefined) => Exclude<Actual, import("@augment-vir/core").Uuid>;
|
|
254
|
-
}>;
|
|
1
|
+
import { assertWrapOverrides, extendableAssertions } from '../../assertions/extendable-assertions.js';
|
|
2
|
+
import { AssertWrapGroup } from '../../guard-types/assert-wrap-function.js';
|
|
3
|
+
declare const assertWrapGroup: AssertWrapGroup<typeof extendableAssertions, typeof assertWrapOverrides>;
|
|
255
4
|
/**
|
|
256
5
|
* A group of guard methods that do the following:
|
|
257
6
|
*
|