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

2.0.3 • Public • Published

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 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Rajas Paranjpe.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/json-parse-safe

      Weekly Downloads

      89

      Version

      2.0.3

      License

      MIT

      Unpacked Size

      3.14 kB

      Total Files

      5

      Last publish

      Collaborators

      • types