[object-joiner] add @types (#38494)

* Update index.d.ts

* add object-joiner typings
This commit is contained in:
Tim Kang
2019-09-23 17:12:08 -07:00
committed by Ben Lichtman
parent 1e76cc036f
commit af7022a5f1
4 changed files with 43 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for object-joiner 1.3
// Project: https://github.com/sarukuku/object-joiner#readme
// Definitions by: Tim <https://github.com/me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function objectJoiner(...args: any[]): any;
export = objectJoiner;
@@ -0,0 +1,11 @@
import objectJoiner = require("object-joiner");
const rs: any = objectJoiner(
{
a: 1234,
x: 2222
},
{
a: 5555
}
);
+23
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",
"object-joiner-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }