diff --git a/src/chai/interface/assert.ts b/src/chai/interface/assert.ts index 334d2879..babf4e6a 100644 --- a/src/chai/interface/assert.ts +++ b/src/chai/interface/assert.ts @@ -50,11 +50,11 @@ export interface AssertInterface { isBelow(val: T, blw: T, msg?: string): void; isAtMost(val: T, atmst: T, msg?: string): void; isTrue(val: unknown, msg?: string): asserts val is true; - isNotTrue(val: unknown, msg?: string): void; + isNotTrue(val: T, msg?: string): asserts val is Exclude; isFalse(val: unknown, msg?: string): asserts val is false; - isNotFalse(val: unknown, msg?: string): void; + isNotFalse(val: T, msg?: string): asserts val is Exclude; isNull(val: unknown, msg?: string): asserts val is null; - isNotNull(val: unknown, msg?: string): void; + isNotNull(val: T, msg?: string): asserts val is Exclude; isNaN(val: unknown, msg?: string): asserts val is number; isNotNaN(val: unknown, msg?: string): void; exists(val: T, msg?: string): asserts val is NonNullable; @@ -68,12 +68,12 @@ export interface AssertInterface { isArray(val: unknown, msg?: string): asserts val is Array; isNotArray(val: unknown, msg?: string): void; isString(val: unknown, msg?: string): asserts val is string; - isNotString(val: unknown, msg?: string): void; + isNotString(val: T, msg?: string): asserts val is Exclude; isNumber(val: unknown, msg?: string): asserts val is number; - isNotNumber(val: unknown, msg?: string): void; + isNotNumber(val: T, msg?: string): asserts val is Exclude; isFinite(val: number, msg?: string): void; isBoolean(val: unknown, msg?: string): asserts val is boolean; - isNotBoolean(val: unknown, msg?: string): void; + isNotBoolean(val: T, msg?: string): asserts val is Exclude; // typeof typeOf(val: unknown, type: 'undefined'): asserts val is undefined;