Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
533 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | * Parses a JSON5 string, constructing the JavaScript value or object described
|
---|
| 3 | * by the string.
|
---|
| 4 | * @template T The type of the return value.
|
---|
| 5 | * @param text The string to parse as JSON5.
|
---|
| 6 | * @param reviver A function that prescribes how the value originally produced
|
---|
| 7 | * by parsing is transformed before being returned.
|
---|
| 8 | * @returns The JavaScript value converted from the JSON5 string.
|
---|
| 9 | */
|
---|
| 10 | declare function parse<T = any>(
|
---|
| 11 | text: string,
|
---|
| 12 | reviver?: ((this: any, key: string, value: any) => any) | null,
|
---|
| 13 | ): T
|
---|
| 14 |
|
---|
| 15 | export = parse
|
---|
Note:
See
TracBrowser
for help on using the repository browser.