@dcloudio/uni-app-x 0.7.115 → 0.7.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/package.json +1 -1
  2. package/types/dom2-internal/UniElement.d.ts +1 -0
  3. package/types/dom2-internal/sharedData.d.ts +235 -127
  4. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
  5. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
  6. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +57 -3
  7. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
  8. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
  9. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +57 -3
  10. package/types/node_modules/.package-lock.json +0 -20
  11. package/types/node_modules/typescript/LICENSE.txt +0 -55
  12. package/types/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  13. package/types/node_modules/typescript/bin/tsc +0 -2
  14. package/types/node_modules/typescript/bin/tsserver +0 -2
  15. package/types/node_modules/typescript/lib/cancellationToken.js +0 -90
  16. package/types/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -1880
  17. package/types/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -1880
  18. package/types/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -1880
  19. package/types/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -1880
  20. package/types/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -1880
  21. package/types/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -1880
  22. package/types/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -1880
  23. package/types/node_modules/typescript/lib/lib.d.ts +0 -22
  24. package/types/node_modules/typescript/lib/lib.decorators.d.ts +0 -386
  25. package/types/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  26. package/types/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -33
  27. package/types/node_modules/typescript/lib/lib.dom.d.ts +0 -28596
  28. package/types/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -475
  29. package/types/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  30. package/types/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  31. package/types/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  32. package/types/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  33. package/types/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -495
  34. package/types/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  35. package/types/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  36. package/types/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  37. package/types/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  38. package/types/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  39. package/types/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  40. package/types/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  41. package/types/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  42. package/types/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  43. package/types/node_modules/typescript/lib/lib.es2017.d.ts +0 -25
  44. package/types/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  45. package/types/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  46. package/types/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  47. package/types/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  48. package/types/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  49. package/types/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  50. package/types/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  51. package/types/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  52. package/types/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -43
  53. package/types/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  54. package/types/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  55. package/types/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  56. package/types/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  57. package/types/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  58. package/types/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  59. package/types/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  60. package/types/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  61. package/types/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  62. package/types/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  63. package/types/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  64. package/types/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  65. package/types/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -727
  66. package/types/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  67. package/types/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  68. package/types/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  69. package/types/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  70. package/types/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  71. package/types/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  72. package/types/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -97
  73. package/types/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -42
  74. package/types/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -37
  75. package/types/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  76. package/types/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  77. package/types/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  78. package/types/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  79. package/types/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  80. package/types/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -76
  81. package/types/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  82. package/types/node_modules/typescript/lib/lib.es2022.d.ts +0 -26
  83. package/types/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -73
  84. package/types/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  85. package/types/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -117
  86. package/types/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  87. package/types/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  88. package/types/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +0 -39
  89. package/types/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  90. package/types/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  91. package/types/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  92. package/types/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  93. package/types/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  94. package/types/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  95. package/types/node_modules/typescript/lib/lib.es5.d.ts +0 -4585
  96. package/types/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  97. package/types/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  98. package/types/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -106
  99. package/types/node_modules/typescript/lib/lib.esnext.d.ts +0 -28
  100. package/types/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  101. package/types/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -185
  102. package/types/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  103. package/types/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  104. package/types/node_modules/typescript/lib/lib.esnext.object.d.ts +0 -29
  105. package/types/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -35
  106. package/types/node_modules/typescript/lib/lib.esnext.regexp.d.ts +0 -25
  107. package/types/node_modules/typescript/lib/lib.esnext.string.d.ts +0 -29
  108. package/types/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  109. package/types/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -33
  110. package/types/node_modules/typescript/lib/lib.webworker.d.ts +0 -9431
  111. package/types/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  112. package/types/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -276
  113. package/types/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -1880
  114. package/types/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -1880
  115. package/types/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -1880
  116. package/types/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -1880
  117. package/types/node_modules/typescript/lib/tsc.js +0 -129741
  118. package/types/node_modules/typescript/lib/tsserver.js +0 -621
  119. package/types/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  120. package/types/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  121. package/types/node_modules/typescript/lib/typesMap.json +0 -497
  122. package/types/node_modules/typescript/lib/typescript.d.ts +0 -11240
  123. package/types/node_modules/typescript/lib/typescript.js +0 -194910
  124. package/types/node_modules/typescript/lib/typingsInstaller.js +0 -236
  125. package/types/node_modules/typescript/lib/watchGuard.js +0 -53
  126. package/types/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -1880
  127. package/types/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -1880
  128. package/types/node_modules/typescript/package.json +0 -116
@@ -1,121 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- interface Array<T> {
20
- /**
21
- * Returns the item located at the specified index.
22
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
23
- */
24
- at(index: number): T | undefined;
25
- }
26
-
27
- interface ReadonlyArray<T> {
28
- /**
29
- * Returns the item located at the specified index.
30
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
31
- */
32
- at(index: number): T | undefined;
33
- }
34
-
35
- interface Int8Array {
36
- /**
37
- * Returns the item located at the specified index.
38
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
39
- */
40
- at(index: number): number | undefined;
41
- }
42
-
43
- interface Uint8Array {
44
- /**
45
- * Returns the item located at the specified index.
46
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
47
- */
48
- at(index: number): number | undefined;
49
- }
50
-
51
- interface Uint8ClampedArray {
52
- /**
53
- * Returns the item located at the specified index.
54
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
55
- */
56
- at(index: number): number | undefined;
57
- }
58
-
59
- interface Int16Array {
60
- /**
61
- * Returns the item located at the specified index.
62
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
63
- */
64
- at(index: number): number | undefined;
65
- }
66
-
67
- interface Uint16Array {
68
- /**
69
- * Returns the item located at the specified index.
70
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
71
- */
72
- at(index: number): number | undefined;
73
- }
74
-
75
- interface Int32Array {
76
- /**
77
- * Returns the item located at the specified index.
78
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
79
- */
80
- at(index: number): number | undefined;
81
- }
82
-
83
- interface Uint32Array {
84
- /**
85
- * Returns the item located at the specified index.
86
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
87
- */
88
- at(index: number): number | undefined;
89
- }
90
-
91
- interface Float32Array {
92
- /**
93
- * Returns the item located at the specified index.
94
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
95
- */
96
- at(index: number): number | undefined;
97
- }
98
-
99
- interface Float64Array {
100
- /**
101
- * Returns the item located at the specified index.
102
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
103
- */
104
- at(index: number): number | undefined;
105
- }
106
-
107
- interface BigInt64Array {
108
- /**
109
- * Returns the item located at the specified index.
110
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
111
- */
112
- at(index: number): bigint | undefined;
113
- }
114
-
115
- interface BigUint64Array {
116
- /**
117
- * Returns the item located at the specified index.
118
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
119
- */
120
- at(index: number): bigint | undefined;
121
- }
@@ -1,26 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es2021" />
20
- /// <reference lib="es2022.array" />
21
- /// <reference lib="es2022.error" />
22
- /// <reference lib="es2022.intl" />
23
- /// <reference lib="es2022.object" />
24
- /// <reference lib="es2022.sharedmemory" />
25
- /// <reference lib="es2022.string" />
26
- /// <reference lib="es2022.regexp" />
@@ -1,73 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- interface ErrorOptions {
20
- cause?: unknown;
21
- }
22
-
23
- interface Error {
24
- cause?: unknown;
25
- }
26
-
27
- interface ErrorConstructor {
28
- new (message?: string, options?: ErrorOptions): Error;
29
- (message?: string, options?: ErrorOptions): Error;
30
- }
31
-
32
- interface EvalErrorConstructor {
33
- new (message?: string, options?: ErrorOptions): EvalError;
34
- (message?: string, options?: ErrorOptions): EvalError;
35
- }
36
-
37
- interface RangeErrorConstructor {
38
- new (message?: string, options?: ErrorOptions): RangeError;
39
- (message?: string, options?: ErrorOptions): RangeError;
40
- }
41
-
42
- interface ReferenceErrorConstructor {
43
- new (message?: string, options?: ErrorOptions): ReferenceError;
44
- (message?: string, options?: ErrorOptions): ReferenceError;
45
- }
46
-
47
- interface SyntaxErrorConstructor {
48
- new (message?: string, options?: ErrorOptions): SyntaxError;
49
- (message?: string, options?: ErrorOptions): SyntaxError;
50
- }
51
-
52
- interface TypeErrorConstructor {
53
- new (message?: string, options?: ErrorOptions): TypeError;
54
- (message?: string, options?: ErrorOptions): TypeError;
55
- }
56
-
57
- interface URIErrorConstructor {
58
- new (message?: string, options?: ErrorOptions): URIError;
59
- (message?: string, options?: ErrorOptions): URIError;
60
- }
61
-
62
- interface AggregateErrorConstructor {
63
- new (
64
- errors: Iterable<any>,
65
- message?: string,
66
- options?: ErrorOptions,
67
- ): AggregateError;
68
- (
69
- errors: Iterable<any>,
70
- message?: string,
71
- options?: ErrorOptions,
72
- ): AggregateError;
73
- }
@@ -1,24 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es2022" />
20
- /// <reference lib="dom" />
21
- /// <reference lib="webworker.importscripts" />
22
- /// <reference lib="scripthost" />
23
- /// <reference lib="dom.iterable" />
24
- /// <reference lib="dom.asynciterable" />
@@ -1,117 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- declare namespace Intl {
20
- /**
21
- * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.
22
- *
23
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
24
- */
25
- interface SegmenterOptions {
26
- /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
27
- localeMatcher?: "best fit" | "lookup" | undefined;
28
- /** The type of input to be split */
29
- granularity?: "grapheme" | "word" | "sentence" | undefined;
30
- }
31
-
32
- interface Segmenter {
33
- /**
34
- * Returns `Segments` object containing the segments of the input string, using the segmenter's locale and granularity.
35
- *
36
- * @param input - The text to be segmented as a `string`.
37
- *
38
- * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
39
- */
40
- segment(input: string): Segments;
41
- resolvedOptions(): ResolvedSegmenterOptions;
42
- }
43
-
44
- interface ResolvedSegmenterOptions {
45
- locale: string;
46
- granularity: "grapheme" | "word" | "sentence";
47
- }
48
-
49
- interface Segments {
50
- /**
51
- * Returns an object describing the segment in the original string that includes the code unit at a specified index.
52
- *
53
- * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.
54
- */
55
- containing(codeUnitIndex?: number): SegmentData;
56
-
57
- /** Returns an iterator to iterate over the segments. */
58
- [Symbol.iterator](): IterableIterator<SegmentData>;
59
- }
60
-
61
- interface SegmentData {
62
- /** A string containing the segment extracted from the original input string. */
63
- segment: string;
64
- /** The code unit index in the original input string at which the segment begins. */
65
- index: number;
66
- /** The complete input string that was segmented. */
67
- input: string;
68
- /**
69
- * A boolean value only if granularity is "word"; otherwise, undefined.
70
- * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
71
- */
72
- isWordLike?: boolean;
73
- }
74
-
75
- const Segmenter: {
76
- prototype: Segmenter;
77
-
78
- /**
79
- * Creates a new `Intl.Segmenter` object.
80
- *
81
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
82
- * For the general form and interpretation of the `locales` argument,
83
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
84
- *
85
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
86
- * with some or all options of `SegmenterOptions`.
87
- *
88
- * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
89
- *
90
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
91
- */
92
- new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;
93
-
94
- /**
95
- * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
96
- *
97
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
98
- * For the general form and interpretation of the `locales` argument,
99
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
100
- *
101
- * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
102
- * with some or all possible options.
103
- *
104
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
105
- */
106
- supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
107
- };
108
-
109
- /**
110
- * Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
111
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
112
- *
113
- * @param key A string indicating the category of values to return.
114
- * @returns A sorted array of the supported values.
115
- */
116
- function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];
117
- }
@@ -1,26 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- interface ObjectConstructor {
20
- /**
21
- * Determines whether an object has a property with the specified name.
22
- * @param o An object.
23
- * @param v A property name.
24
- */
25
- hasOwn(o: object, v: PropertyKey): boolean;
26
- }
@@ -1,39 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- interface RegExpMatchArray {
20
- indices?: RegExpIndicesArray;
21
- }
22
-
23
- interface RegExpExecArray {
24
- indices?: RegExpIndicesArray;
25
- }
26
-
27
- interface RegExpIndicesArray extends Array<[number, number]> {
28
- groups?: {
29
- [key: string]: [number, number];
30
- };
31
- }
32
-
33
- interface RegExp {
34
- /**
35
- * Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression.
36
- * Default is false. Read-only.
37
- */
38
- readonly hasIndices: boolean;
39
- }
@@ -1,39 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- interface Atomics {
20
- /**
21
- * A non-blocking, asynchronous version of wait which is usable on the main thread.
22
- * Waits asynchronously on a shared memory location and returns a Promise
23
- * @param typedArray A shared Int32Array or BigInt64Array.
24
- * @param index The position in the typedArray to wait on.
25
- * @param value The expected value to test.
26
- * @param [timeout] The expected value to test.
27
- */
28
- waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };
29
-
30
- /**
31
- * A non-blocking, asynchronous version of wait which is usable on the main thread.
32
- * Waits asynchronously on a shared memory location and returns a Promise
33
- * @param typedArray A shared Int32Array or BigInt64Array.
34
- * @param index The position in the typedArray to wait on.
35
- * @param value The expected value to test.
36
- * @param [timeout] The expected value to test.
37
- */
38
- waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };
39
- }
@@ -1,25 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
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
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
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
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- interface String {
20
- /**
21
- * Returns a new String consisting of the single UTF-16 code unit located at the specified index.
22
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
23
- */
24
- at(index: number): string | undefined;
25
- }