mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-23 12:44:35 +00:00
feat: Add typings for is-empty-object (#41548)
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
committed by
Eli Barzilay
parent
a0201c397a
commit
5c5ed22e7b
9
types/is-empty-object/index.d.ts
vendored
Normal file
9
types/is-empty-object/index.d.ts
vendored
Normal 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;
|
||||
3
types/is-empty-object/is-empty-object-tests.ts
Normal file
3
types/is-empty-object/is-empty-object-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import isEmptyObject = require("is-empty-object");
|
||||
|
||||
isEmptyObject({}); // $ReturnType boolean
|
||||
23
types/is-empty-object/tsconfig.json
Normal file
23
types/is-empty-object/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/is-empty-object/tslint.json
Normal file
1
types/is-empty-object/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user