$ cnpm install @types/jsonlint
npm install --save @types/jsonlint
This package contains type definitions for jsonlint (https://github.com/zaach/jsonlint).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonlint.
/**
* 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>;
These definitions were written by Timmatt Lee.
Copyright 2013 - present © cnpmjs.org | Home |