Skip to content

Commit

Permalink
Change ts/flow signature of true + false assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Sebald authored and novemberborn committed Jan 10, 2017
1 parent 1a9ddbe commit ce42fcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions types/base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit ce42fcb

Please sign in to comment.