UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

19 lines (18 loc) 983 B
/** Note: try to avoid non-type imports in this file, it can easily cause circular imports. */ import type { ImmutableArray } from "./array.js"; import type { ImmutableMap } from "./map.js"; import type { ImmutableSet } from "./set.js"; /** Debug a random value as a string. */ export declare function debug(value: unknown, depth?: number): string; /** Debug a string. */ export declare const debugString: (value: string) => string; /** Debug an array. */ export declare function debugArray(value: ImmutableArray, depth?: number): string; /** Debug a set. */ export declare function debugSet(value: ImmutableSet, depth?: number): string; /** Debug a map. */ export declare function debugMap(value: ImmutableMap, depth?: number): string; /** Debug an object. */ export declare function debugObject(value: object, depth?: number): string; /** If a string is multiline, push it onto the next line and prepend a tab to each line.. */ export declare function indent(str: string): string;