PHP 8.2.30
Preview: index.d.ts Size: 1.06 KB
/home/byroehnu/.trash/node_modules11/safe-stable-stringify/index.d.ts

export type Replacer = (number | string)[] | null | undefined | ((key: string, value: unknown) => string | number | boolean | null | object)

export function stringify(value: undefined | symbol | ((...args: unknown[]) => unknown), replacer?: Replacer, space?: string | number): undefined
export function stringify(value: string | number | unknown[] | null | boolean | object, replacer?: Replacer, space?: string | number): string
export function stringify(value: unknown, replacer?: ((key: string, value: unknown) => unknown) | (number | string)[] | null | undefined, space?: string | number): string | undefined

export interface StringifyOptions {
  bigint?: boolean,
  circularValue?: string | null | TypeErrorConstructor | ErrorConstructor,
  deterministic?: boolean | ((a: string, b: string) => number),
  maximumBreadth?: number,
  maximumDepth?: number,
  strict?: boolean,
}

export namespace stringify {
  export function configure(options: StringifyOptions): typeof stringify
}

export function configure(options: StringifyOptions): typeof stringify

export default stringify

Directory Contents

Dirs: 1 × Files: 5

Name Size Perms Modified Actions
esm DIR
- drwxr-xr-x 2026-02-21 00:53:30
Edit Download
1.06 KB lrw-r--r-- 2026-02-21 00:53:28
Edit Download
19.41 KB lrw-r--r-- 2026-02-21 00:53:22
Edit Download
1.05 KB lrw-r--r-- 2026-02-21 00:53:20
Edit Download
1.68 KB lrw-r--r-- 2026-02-21 00:53:26
Edit Download
6.49 KB lrw-r--r-- 2026-02-21 00:53:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).