DefinitelyTyped/types/object-inspect/object-inspect-tests.ts
Charles Samborski 63c0b20f2c
Add types for object-inspect@1.4
This commit add type declarations for `object-inspect`.

Related:
- https://github.com/substack/object-inspect/pull/17
2017-11-12 00:41:24 +01:00

11 lines
229 B
TypeScript

import objectInspect = require('object-inspect');
// $ExpectType string
objectInspect({foo: "bar"});
// $ExpectType string
objectInspect({foo: "bar"}, {});
// $ExpectType string
objectInspect({foo: "bar"}, {depth: Infinity});