feat: Add typings for is-empty-object (#41548)

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
Richie Bendall
2020-01-16 11:15:38 +13:00
committed by Eli Barzilay
parent a0201c397a
commit 5c5ed22e7b
4 changed files with 36 additions and 0 deletions

9
types/is-empty-object/index.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
// Type definitions for is-empty-object 1.1
// Project: https://github.com/gummesson/is-empty-object
// Definitions by: Richie Bendall <https://github.com/Richienb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
declare function isEmptyObject(obj: unknown): boolean;
export = isEmptyObject;

View File

@@ -0,0 +1,3 @@
import isEmptyObject = require("is-empty-object");
isEmptyObject({}); // $ReturnType boolean

View File

@@ -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",
"is-empty-object-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }