Merge pull request #29052 from saenglert/master

[obj-str] Created obj-str definition
This commit is contained in:
Nathan Shively-Sanders
2018-09-20 11:26:23 -07:00
committed by GitHub
4 changed files with 31 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for obj-str 1.0
// Project: https://github.com/lukeed/obj-str#readme
// Definitions by: Sascha Englert <https://github.com/saenglert>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = objstr;
declare function objstr(obj: { [name: string]: boolean }): string;
+6
View File
@@ -0,0 +1,6 @@
import objstr = require('obj-str');
const isTrue = () => true;
objstr({ foo: true, bar: false, baz: isTrue() });
// => 'foo baz'
+16
View File
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": ["../"],
"strictFunctionTypes": true,
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": ["index.d.ts", "obj-str-tests.ts"]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }