Permalink
Browse files

Change ts/flow signature of true + false assertion

  • Loading branch information...
1 parent 1a9ddbe commit ce42fcb7741039eeb26f0a167b27fd5923936a1b @sebald sebald committed with novemberborn Jan 3, 2017
Showing with 4 additions and 4 deletions.
  1. +2 −2 index.js.flow
  2. +2 −2 types/base.d.ts
View
@@ -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<U>(value: U, expected: U, message?: string): void;
// Assert that value is not equal to expected.
View
@@ -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.
*/

0 comments on commit ce42fcb

Please sign in to comment.