diff --git a/types/positive-zero/index.d.ts b/types/positive-zero/index.d.ts new file mode 100644 index 0000000000..7396c68302 --- /dev/null +++ b/types/positive-zero/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for positive-zero 2.0 +// Project: https://github.com/sindresorhus/positive-zero#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = positiveZero; + +declare function positiveZero(input: number): boolean; diff --git a/types/positive-zero/positive-zero-tests.ts b/types/positive-zero/positive-zero-tests.ts new file mode 100644 index 0000000000..03d689a5d3 --- /dev/null +++ b/types/positive-zero/positive-zero-tests.ts @@ -0,0 +1,3 @@ +import positiveZero = require('positive-zero'); + +positiveZero(0); // $ExpectType boolean diff --git a/types/positive-zero/tsconfig.json b/types/positive-zero/tsconfig.json new file mode 100644 index 0000000000..b6f4f58dbc --- /dev/null +++ b/types/positive-zero/tsconfig.json @@ -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", + "positive-zero-tests.ts" + ] +} diff --git a/types/positive-zero/tslint.json b/types/positive-zero/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/positive-zero/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }