Skip to content

Commit

Permalink
Fix typings for closeTo (TrueFiEng#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruch authored Jun 16, 2021
1 parent c33f14e commit 8edfebe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions waffle-chai/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ declare namespace Chai {
(value: any, message?: string): Assertion;
}

interface CloseTo {
(expected: any, delta: number, message?: string): Assertion,
}

interface AsyncAssertion extends Assertion, Promise<void> {
}

Expand Down

0 comments on commit 8edfebe

Please sign in to comment.