@types/json-parse-better-errors
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/json-parse-better-errors

Summary

This package contains type definitions for json-parse-better-errors (https://github.com/zkat/json-parse-better-errors#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-parse-better-errors.

index.d.ts

export = json_parse_better_errors;

/**
 * Converts a JavaScript Object Notation (JSON) string into an object.
 * @param text A valid JSON string.
 * @param reviver A function that transforms the results. This function is called for each member of the object.
 *               If a member contains nested objects, the nested objects are transformed before the parent object is.
 * @param context The number of characters to display in each direction around the position of an error.
 */
declare function json_parse_better_errors(
    txt: string,
    reviver?: (key: string, value: any) => any,
    context?: number,
): any;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Daniel Rosenwasser.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.311,713ts5.8
1.0.311,713ts5.7
1.0.311,713latest
1.0.311,713ts4.5
1.0.311,713ts4.6
1.0.311,713ts4.7
1.0.311,713ts4.8
1.0.311,713ts4.9
1.0.311,713ts5.0
1.0.311,713ts5.1
1.0.311,713ts5.2
1.0.311,713ts5.3
1.0.311,713ts5.4
1.0.311,713ts5.5
1.0.311,713ts5.6
1.0.311,713ts5.9
1.0.04,747ts2.0
1.0.04,747ts2.1
1.0.04,747ts2.2
1.0.04,747ts2.3
1.0.04,747ts2.4
1.0.04,747ts2.5
1.0.04,747ts2.6
1.0.04,747ts2.7
1.0.04,747ts2.8
1.0.04,747ts2.9
1.0.04,747ts3.0
1.0.04,747ts3.1
1.0.04,747ts3.2
1.0.04,747ts3.3
1.0.04,747ts3.4
1.0.04,747ts3.5
1.0.04,747ts3.6
1.0.04,747ts3.7
1.0.04,747ts3.8
1.0.04,747ts3.9
1.0.04,747ts4.0
1.0.04,747ts4.1
1.0.04,747ts4.2
1.0.04,747ts4.3
1.0.04,747ts4.4

Version History

VersionDownloads (Last 7 Days)Published
1.0.311,713
1.0.20
1.0.135,104
1.0.04,747

Package Sidebar

Install

npm i @types/json-parse-better-errors

Weekly Downloads

51,564

Version

1.0.3

License

MIT

Unpacked Size

3.96 kB

Total Files

5

Last publish

Collaborators

  • types