|
1 | 1 | /*! *****************************************************************************
|
2 |
| -Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +Copyright (c) Microsoft Corporation. All rights reserved. |
3 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4 | 4 | this file except in compliance with the License. You may obtain a copy of the
|
5 |
| -License at http://www.apache.org/licenses/LICENSE-2.0 |
6 |
| - |
| 5 | +License at http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | +
|
7 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8 | 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9 |
| -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, |
10 |
| -MERCHANTABLITY OR NON-INFRINGEMENT. |
11 |
| - |
| 9 | +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, |
| 10 | +MERCHANTABLITY OR NON-INFRINGEMENT. |
| 11 | +
|
12 | 12 | See the Apache Version 2.0 License for specific language governing permissions
|
13 | 13 | and limitations under the License.
|
14 | 14 | ***************************************************************************** */
|
@@ -597,7 +597,7 @@ interface TemplateStringsArray extends ReadonlyArray<string> {
|
597 | 597 |
|
598 | 598 | /**
|
599 | 599 | * The type of `import.meta`.
|
600 |
| - * |
| 600 | + * |
601 | 601 | * If you need to declare that a given property exists on `import.meta`,
|
602 | 602 | * this type may be augmented via interface merging.
|
603 | 603 | */
|
@@ -1039,14 +1039,19 @@ interface URIErrorConstructor {
|
1039 | 1039 |
|
1040 | 1040 | declare const URIError: URIErrorConstructor;
|
1041 | 1041 |
|
| 1042 | +type JSONPrimitive = string | number | boolean | null; |
| 1043 | +type JSONValue = JSONPrimitive | JSONObject | JSONArray; |
| 1044 | +type JSONObject = { [member: string]: JSONValue }; |
| 1045 | +interface JSONArray extends Array<JSONValue> {} |
| 1046 | + |
1042 | 1047 | interface JSON {
|
1043 | 1048 | /**
|
1044 | 1049 | * Converts a JavaScript Object Notation (JSON) string into an object.
|
1045 | 1050 | * @param text A valid JSON string.
|
1046 | 1051 | * @param reviver A function that transforms the results. This function is called for each member of the object.
|
1047 | 1052 | * If a member contains nested objects, the nested objects are transformed before the parent object is.
|
1048 | 1053 | */
|
1049 |
| - parse(text: string, reviver?: (key: any, value: any) => any): any; |
| 1054 | + parse(text: string, reviver?: (key: any, value: any) => any): JSONValue; |
1050 | 1055 | /**
|
1051 | 1056 | * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
1052 | 1057 | * @param value A JavaScript value, usually an object or array, to be converted.
|
|
0 commit comments