npm.io
1.6.3 • Published 2 years ago

@types/jsonlint

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

Installation

npm install --save @types/jsonlint

Summary

This package contains type definitions for jsonlint (https://github.com/zaach/jsonlint).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonlint.

index.d.ts

/**
 * Parse a JSON string to Typescript Object. If there is an error will print it
 * as human readible.
 *
 * Please use `import * as jsonlint from 'jsonlint';`. Instead of,
 * `import {parse} from 'jsonlint';`. Otherwise, it cannot reference to the
 * correct instance.
 */
export function parse(str: string): Record<string, unknown>;

Additional Details

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

Credits

These definitions were written by Timmatt Lee.