# Installation
> `npm install --save @types/yieldable-json`

# Summary
This package contains type definitions for yieldable-json (https://github.com/ibmruntimes/yieldable-json).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yieldable-json.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yieldable-json/index.d.ts)
````ts
export type Callback<T> = (err: Error, result: T) => void;

export type Reviver = (key: number, value: any) => any;

export type Replacer = (key: number, value: any) => any;

export function stringifyAsync(data: object, callback: Callback<string>): () => void;
export function stringifyAsync(
    data: object,
    replacer_intensity_space: Replacer | any[] | null | number | string,
    callback: Callback<string>,
): () => void;
export function stringifyAsync(
    data: object,
    replacer_space: Replacer | any[] | null | number | string,
    space_intensity: number | string,
    callback: Callback<string>,
): () => void;
export function stringifyAsync(
    data: object,
    replacer: Replacer | any[] | null,
    space: number | string,
    intensity: number,
    callback: Callback<string>,
): () => void;

export function parseAsync(text: string, callback: Callback<object>): string;
export function parseAsync(text: string, reviver_intensity: Reviver | number, callback: Callback<object>): string;
export function parseAsync(text: string, reviver: Reviver, intensity: number, callback: Callback<object>): string;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Martin Badin](https://github.com/martin-badin).
