npm.io
2.0.3 • Published 2 years ago

@types/json-parse-safe

Licence
MIT
Version
2.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/json-parse-safe

Summary

This package contains type definitions for json-parse-safe (https://github.com/joaquimserafim/json-parse-safe#readme).

Details

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

index.d.ts

interface OutputSuccess {
    value: any;
}

interface OutputError {
    error: Error;
}

declare function jsonParseSafe(
    text: string,
    reviver?: (this: any, key: string, value: any) => any,
): OutputSuccess | OutputError;

export = jsonParseSafe;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Rajas Paranjpe.