UNPKG
@stryke/json
Version:
latest (0.15.20)
0.15.20
0.15.19
0.15.18
0.15.17
0.15.16
0.15.15
0.15.14
0.15.13
0.15.12
0.15.11
0.15.10
0.15.9
0.15.8
0.15.7
0.15.6
0.15.5
0.15.4
0.15.3
0.15.2
0.15.1
0.15.0
0.14.20
0.14.19
0.14.18
0.14.17
0.14.16
0.14.15
0.14.14
0.14.13
0.14.12
0.14.11
0.14.10
0.14.9
0.14.8
0.14.7
0.14.6
0.14.5
0.14.4
0.14.3
0.14.2
0.14.0
0.13.1
0.13.0
0.12.0
0.11.0
0.10.0
0.9.44
0.9.43
0.9.41
0.9.40
0.9.39
0.9.38
0.9.37
0.9.36
0.9.35
0.9.34
0.9.33
0.9.32
0.9.31
0.9.30
0.9.29
0.9.28
0.9.27
0.9.26
0.9.25
0.9.24
0.9.23
0.9.16
0.9.15
0.9.14
0.9.13
0.9.12
0.9.11
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.1
A package containing JSON parsing/stringify utilities used by Storm Software.
stormsoftware.com
@stryke/json
/
dist
/
utils
/
parse-error.d.ts
10 lines
(9 loc)
•
285 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import type {
ParseError
}
from
"jsonc-parser"
;
/** * Nicely formats a JSON error with context * *
@param
input - JSON content as string *
@param
parseError - jsonc ParseError *
@returns
*/
export
declare
function
formatParseError
(
input:
string
, parseError:
ParseError
):
string
;