mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 13:57:10 -04:00
11 lines
370 B
TypeScript
11 lines
370 B
TypeScript
![]() |
declare module 'jsonlint-mod'{
|
||
|
/**
|
||
|
* 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>;
|
||
|
}
|