Merge pull request #32098 from BendingBender/negative-zero

[negative-zero] Add types
This commit is contained in:
Daniel Rosenwasser
2019-01-15 17:14:44 -08:00
committed by GitHub
4 changed files with 35 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for negative-zero 2.0
// Project: https://github.com/sindresorhus/negative-zero#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = negativeZero;
declare function negativeZero(input: number): boolean;
@@ -0,0 +1,3 @@
import negativeZero = require('negative-zero');
negativeZero(-0); // $ExpectType boolean
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"negative-zero-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }