mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
[object-joiner] add @types (#38494)
* Update index.d.ts * add object-joiner typings
This commit is contained in:
Vendored
+8
@@ -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
|
||||
}
|
||||
);
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user