@types/object-inspect
TypeScript definitions for object-inspect
Last updated 8 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/object-inspect 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/object-inspect

Summary

This package contains type definitions for object-inspect (https://github.com/substack/object-inspect).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object-inspect.

index.d.ts

// Type definitions for object-inspect 1.8
// Project: https://github.com/substack/object-inspect
// Definitions by: Charles Samborski <https://github.com/demurgos>
//                 Akuukis <https://github.com/Akuukis>
//                 Jordan Harband <https://github.com/ljharb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace objectInspect {
    /**
     * Inspection options
     */
    interface Options {
        /**
         * Maximum depth of the inspection. Default: `5`.
         */
        depth?: number | undefined;
        /**
         * Must be "single" or "double", if present.
         */
        quoteStyle?: 'single' | 'double' | undefined;
        /**
         * Must be 0, a positive integer, Infinity, or null, if present. Default Infinity.
         */
        maxStringLength?: number | null | undefined;
        /**
         * When true, a custom inspect method function will be invoked. Default true.
         */
        customInspect?: boolean | undefined;
        /**
         * Must be "\t", null, or a positive integer. Default null.
         */
        indent?: number | '\t' | null | undefined;
    }
}

/**
 * Return a string `s` with the string representation of `obj` up to a depth of `opts.depth`.
 *
 * @param obj Object to inspect
 * @param opts Inspection options. Default: `{}`.
 * @return String representation of `obj`
 */
declare function objectInspect(obj: any, opts?: objectInspect.Options): string;

export = objectInspect;

Additional Details

  • Last updated: Wed, 07 Jul 2021 16:31:36 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Charles Samborski, Akuukis, and Jordan Harband.

Current Tags

  • 1.8.1                                ...           latest (5 years ago)
  • 1.6.0                                ...           ts2.0 (6 years ago)
  • 1.6.0                                ...           ts2.1 (6 years ago)
  • 1.6.0                                ...           ts2.2 (6 years ago)
  • 1.6.0                                ...           ts2.3 (6 years ago)
  • 1.6.0                                ...           ts2.4 (6 years ago)
  • 1.6.0                                ...           ts2.5 (6 years ago)
  • 1.6.0                                ...           ts2.6 (6 years ago)
  • 1.6.0                                ...           ts2.7 (6 years ago)
  • 1.6.1                                ...           ts2.8 (6 years ago)
  • 1.6.1                                ...           ts2.9 (6 years ago)
  • 1.6.1                                ...           ts3.0 (6 years ago)
  • 1.6.1                                ...           ts3.1 (6 years ago)
  • 1.8.0                                ...           ts3.2 (5 years ago)
  • 1.8.0                                ...           ts3.3 (5 years ago)
  • 1.8.0                                ...           ts3.4 (5 years ago)
  • 1.8.0                                ...           ts3.5 (5 years ago)
  • 1.8.1                                ...           ts3.6 (5 years ago)
  • 1.8.1                                ...           ts3.7 (5 years ago)
  • 1.8.1                                ...           ts3.8 (5 years ago)
  • 1.8.1                                ...           ts3.9 (5 years ago)
  • 1.8.1                                ...           ts4.0 (5 years ago)
  • 1.8.1                                ...           ts4.1 (5 years ago)
  • 1.8.1                                ...           ts4.2 (5 years ago)
  • 1.8.1                                ...           ts4.3 (5 years ago)
  • 1.8.1                                ...           ts4.4 (5 years ago)
  • 1.8.1                                ...           ts4.5 (5 years ago)
  • 1.8.1                                ...           ts4.6 (5 years ago)
  • 1.8.1                                ...           ts4.7 (5 years ago)
  • 1.8.1                                ...           ts4.8 (5 years ago)
  • 1.8.1                                ...           ts4.9 (5 years ago)

5 Versions

  • 1.8.1                                ...           5 years ago
  • 1.8.0                                ...           5 years ago
  • 1.6.1                                ...           6 years ago
  • 1.6.0                                ...           6 years ago
  • 1.4.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |