mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for almost-equal * Add strictFunctionTypes to config * Use number type for comparison args
12 lines
483 B
TypeScript
12 lines
483 B
TypeScript
// Type definitions for almost-equal 1.1
|
|
// Project: https://github.com/mikolalysenko/almost-equal#readme
|
|
// Definitions by: Curtis Maddalozzo <https://github.com/cmaddalozzo>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare function almostEqual(value: number, other: number, absoluteTolerance?: number, relativeTolerance?: number): boolean;
|
|
declare namespace almostEqual {
|
|
const FLT_EPSILON: number;
|
|
const DBL_EPSILON: number;
|
|
}
|
|
export = almostEqual;
|