| Server IP : 85.155.190.233 / Your IP : 216.73.216.103 Web Server : nginx/1.24.0 System : Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : wp-moonbloom ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/nodejs/@types/object-inspect/ |
Upload File : |
// 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;