UNPKG

@freeword/meta

Version:

Meta package for Freeword: exports all core types, constants, and utilities from the src/ directory.

30 lines 1.08 kB
import * as NodeUtil from 'node:util'; interface KeyAndValue { key: string; value: any; } export interface jsonifyOpts { cycles?: boolean; reverse?: boolean; cmp?: (oa: KeyAndValue, ob: KeyAndValue) => number; } export type CircularReplacer = <RT = any>(kk: string, vv: RT) => RT | string; export type KVAnyPair = [string | number, any]; export interface stringifyOpts { depth?: number; maxlen?: number; maxarr?: number; maxobj?: number; naked?: boolean; ellipsis?: string; } export declare function scrub_textish(val: string): string; export declare function scrub_stringish(val: string): string; export declare function reverseJsonifyCmp({ key: ka, value: va }: KeyAndValue, { key: kb, value: vb }: KeyAndValue): 1 | -1; export declare function jsonify(val: any, optsIn?: jsonifyOpts): string; export type InspectifyOpts = stringifyOpts & NodeUtil.InspectOptions & { verbosity?: number | undefined; }; export declare function inspectify(val: any, opts?: InspectifyOpts): string; export {}; //# sourceMappingURL=stringify.d.ts.map