forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Merge PR DefinitelyTyped#53037 update(float-equal): v3 update (ESM …
…migration) by @peterblazejewicz - v3 is breaking as JS package converted to ESM - reflected in DT details https://github.com/sindresorhus/float-equal/releases/tag/v3.0.0 Thanks!
- Loading branch information
1 parent
33455fc
commit c51eb58
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import floatEqual = require("float-equal"); | ||
import floatEqual from "float-equal"; | ||
|
||
floatEqual(0.1 + 0.2, 0.3); // $ExpectType boolean | ||
// $ExpectType boolean | ||
floatEqual(0.1 + 0.2, 0.3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
// Type definitions for float-equal 2.0 | ||
// Type definitions for float-equal 3.0 | ||
// Project: https://github.com/sindresorhus/float-equal#readme | ||
// Definitions by: Dolan Murvihill <https://github.com/dmurvihill> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
|
||
/** | ||
* Check if two floats are almost equal | ||
*/ | ||
declare function floatEqual(a: number, b: number): boolean; | ||
export = floatEqual; | ||
|
||
export default floatEqual; |