DefinitelyTyped/types/almost-equal/index.d.ts
Curtis Maddalozzo 24047dd61d Add types for almost-equal (#27573)
* Add types for almost-equal

* Add strictFunctionTypes to config

* Use number type for comparison args
2018-07-25 09:52:00 -07:00

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;