mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Add type definitions for float-equal version 2.0 (#40195)
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
7221daab35
commit
bb1dd9f522
@@ -0,0 +1,3 @@
|
||||
import floatEqual = require("float-equal");
|
||||
|
||||
floatEqual(0.1 + 0.2, 0.3); // $ExpectType boolean
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// Type definitions for float-equal 2.0
|
||||
// Project: https://github.com/sindresorhus/float-equal#readme
|
||||
// Definitions by: Dolan Murvihill <https://github.com/dmurvihill>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function floatEqual(a: number, b: number): boolean;
|
||||
export = floatEqual;
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"float-equal-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user