From ce42fcb7741039eeb26f0a167b27fd5923936a1b Mon Sep 17 00:00:00 2001 From: Sebastian Sebald Date: Tue, 3 Jan 2017 08:33:11 +0100 Subject: [PATCH] Change ts/flow signature of true + false assertion --- index.js.flow | 4 ++-- types/base.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js.flow b/index.js.flow index 9ebdf8482..9675aa594 100644 --- a/index.js.flow +++ b/index.js.flow @@ -48,9 +48,9 @@ type AssertContext = { // DEPRECATED, use `falsy`. Assert that value is falsy. notOk(value: mixed, message?: string): void; // Assert that value is true. - true(value: boolean, message?: string): void; + true(value: mixed, message?: string): void; // Assert that value is false. - false(value: boolean, message?: string): void; + false(value: mixed, message?: string): void; // Assert that value is equal to expected. is(value: U, expected: U, message?: string): void; // Assert that value is not equal to expected. diff --git a/types/base.d.ts b/types/base.d.ts index a827291e3..d50e36403 100644 --- a/types/base.d.ts +++ b/types/base.d.ts @@ -43,11 +43,11 @@ export interface AssertContext { /** * Assert that value is true. */ - true(value: boolean, message?: string): void; + true(value: any, message?: string): void; /** * Assert that value is false. */ - false(value: boolean, message?: string): void; + false(value: any, message?: string): void; /** * Assert that value is equal to expected. */