mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #29052 from saenglert/master
[obj-str] Created obj-str definition
This commit is contained in:
Vendored
+8
@@ -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;
|
||||
@@ -0,0 +1,6 @@
|
||||
import objstr = require('obj-str');
|
||||
|
||||
const isTrue = () => true;
|
||||
|
||||
objstr({ foo: true, bar: false, baz: isTrue() });
|
||||
// => 'foo baz'
|
||||
@@ -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"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user