UNPKG
@lesnoypudge/utils
Version:
latest (20.0.0)
20.0.0
19.5.2
19.5.1
19.5.0
19.4.0
19.3.2
19.3.1
19.3.0
19.2.1
19.2.0
19.1.0
19.0.2
19.0.1
19.0.0
18.0.0
17.1.0
17.0.0
16.3.0
16.2.0
16.1.0
16.0.0
15.0.2
15.0.1
15.0.0
14.1.0
14.0.0
13.0.0
12.6.1
12.6.0
12.5.0
12.4.2
12.4.1
12.4.0
12.3.2
12.3.0
12.2.1
12.2.0
12.1.0
12.0.0
11.0.0
10.1.3
10.1.2
10.1.1
10.1.0
10.0.1
10.0.0
9.3.0
9.2.0
9.1.0
9.0.2
9.0.1
9.0.0
8.3.0
8.2.0
8.1.1
8.1.0
8.0.0
7.8.0
7.7.1
7.7.0
7.6.0
7.5.1
7.5.0
7.4.2
7.4.1
7.4.0
7.3.0
7.2.0
7.1.1
7.1.0
7.0.0
6.1.1
6.1.0
6.0.2
6.0.1
6.0.0
5.1.0
5.0.0
4.0.0
3.1.0
3.0.0
2.2.0
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.0.0
lesnoypudge's utils
@lesnoypudge/utils
/
build
/
parseJSON
/
parseJSON.d.ts
6 lines
(5 loc)
•
190 B
TypeScript
View Raw
1
2
3
4
5
6
/** * Safely parses JSON. * Returns undefined on error. */
export
declare
const
parseJSON
:
(
text
:
string
,
reviver
?: ((
this
:
any
, key:
string
, value:
any
) =>
any
) |
undefined
) =>
unknown
;