mailisk 2.2.1 → 2.2.2

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 (144) hide show
  1. package/package.json +1 -1
  2. package/private/dist/private/index.js +0 -28
  3. package/private/dist/private/index.js.map +0 -1
  4. package/private/dist/src/mailisk.interfaces.js +0 -3
  5. package/private/dist/src/mailisk.interfaces.js.map +0 -1
  6. package/private/dist/src/mailisk.js +0 -168
  7. package/private/dist/src/mailisk.js.map +0 -1
  8. package/private/index.ts +0 -17
  9. package/private/node_modules/.package-lock.json +0 -44
  10. package/private/node_modules/typescript/LICENSE.txt +0 -55
  11. package/private/node_modules/typescript/README.md +0 -50
  12. package/private/node_modules/typescript/SECURITY.md +0 -41
  13. package/private/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  14. package/private/node_modules/typescript/bin/tsc +0 -2
  15. package/private/node_modules/typescript/bin/tsserver +0 -2
  16. package/private/node_modules/typescript/lib/_tsc.js +0 -133818
  17. package/private/node_modules/typescript/lib/_tsserver.js +0 -659
  18. package/private/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  19. package/private/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  20. package/private/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  21. package/private/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  22. package/private/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  23. package/private/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  24. package/private/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  25. package/private/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  26. package/private/node_modules/typescript/lib/lib.d.ts +0 -22
  27. package/private/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  28. package/private/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  29. package/private/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  30. package/private/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  31. package/private/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  32. package/private/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  33. package/private/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  34. package/private/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  35. package/private/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  36. package/private/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  37. package/private/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  38. package/private/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  39. package/private/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  40. package/private/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  41. package/private/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  42. package/private/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  43. package/private/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  44. package/private/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  45. package/private/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  46. package/private/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  47. package/private/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  48. package/private/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  49. package/private/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  50. package/private/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  51. package/private/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  52. package/private/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  53. package/private/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  54. package/private/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  55. package/private/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  56. package/private/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  57. package/private/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  58. package/private/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  59. package/private/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  60. package/private/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  61. package/private/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  62. package/private/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  63. package/private/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  64. package/private/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  65. package/private/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  66. package/private/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  67. package/private/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  68. package/private/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  69. package/private/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  70. package/private/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  71. package/private/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  72. package/private/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  73. package/private/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  74. package/private/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  75. package/private/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  76. package/private/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  77. package/private/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  78. package/private/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  79. package/private/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  80. package/private/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  81. package/private/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  82. package/private/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  83. package/private/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  84. package/private/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  85. package/private/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  86. package/private/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  87. package/private/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  88. package/private/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  89. package/private/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  90. package/private/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  91. package/private/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  92. package/private/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  93. package/private/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  94. package/private/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  95. package/private/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  96. package/private/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  97. package/private/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  98. package/private/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  99. package/private/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  100. package/private/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  101. package/private/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  102. package/private/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  103. package/private/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  104. package/private/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  105. package/private/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  106. package/private/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  107. package/private/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  108. package/private/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  109. package/private/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  110. package/private/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  111. package/private/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  112. package/private/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  113. package/private/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  114. package/private/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  115. package/private/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  116. package/private/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  117. package/private/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  118. package/private/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  119. package/private/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  120. package/private/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  121. package/private/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  122. package/private/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  123. package/private/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  124. package/private/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  125. package/private/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  126. package/private/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  127. package/private/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  128. package/private/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  129. package/private/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  130. package/private/node_modules/typescript/lib/tsc.js +0 -8
  131. package/private/node_modules/typescript/lib/tsserver.js +0 -8
  132. package/private/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  133. package/private/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  134. package/private/node_modules/typescript/lib/typesMap.json +0 -497
  135. package/private/node_modules/typescript/lib/typescript.d.ts +0 -11437
  136. package/private/node_modules/typescript/lib/typescript.js +0 -200276
  137. package/private/node_modules/typescript/lib/typingsInstaller.js +0 -8
  138. package/private/node_modules/typescript/lib/watchGuard.js +0 -53
  139. package/private/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  140. package/private/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  141. package/private/node_modules/typescript/package.json +0 -120
  142. package/private/package-lock.json +0 -53
  143. package/private/package.json +0 -17
  144. package/private/tsconfig.json +0 -103
@@ -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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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<TArrayBuffer extends ArrayBufferLike> {
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,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
- /// <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.regexp" />
25
- /// <reference lib="es2022.string" />
@@ -1,75 +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.promise" />
20
-
21
- interface ErrorOptions {
22
- cause?: unknown;
23
- }
24
-
25
- interface Error {
26
- cause?: unknown;
27
- }
28
-
29
- interface ErrorConstructor {
30
- new (message?: string, options?: ErrorOptions): Error;
31
- (message?: string, options?: ErrorOptions): Error;
32
- }
33
-
34
- interface EvalErrorConstructor {
35
- new (message?: string, options?: ErrorOptions): EvalError;
36
- (message?: string, options?: ErrorOptions): EvalError;
37
- }
38
-
39
- interface RangeErrorConstructor {
40
- new (message?: string, options?: ErrorOptions): RangeError;
41
- (message?: string, options?: ErrorOptions): RangeError;
42
- }
43
-
44
- interface ReferenceErrorConstructor {
45
- new (message?: string, options?: ErrorOptions): ReferenceError;
46
- (message?: string, options?: ErrorOptions): ReferenceError;
47
- }
48
-
49
- interface SyntaxErrorConstructor {
50
- new (message?: string, options?: ErrorOptions): SyntaxError;
51
- (message?: string, options?: ErrorOptions): SyntaxError;
52
- }
53
-
54
- interface TypeErrorConstructor {
55
- new (message?: string, options?: ErrorOptions): TypeError;
56
- (message?: string, options?: ErrorOptions): TypeError;
57
- }
58
-
59
- interface URIErrorConstructor {
60
- new (message?: string, options?: ErrorOptions): URIError;
61
- (message?: string, options?: ErrorOptions): URIError;
62
- }
63
-
64
- interface AggregateErrorConstructor {
65
- new (
66
- errors: Iterable<any>,
67
- message?: string,
68
- options?: ErrorOptions,
69
- ): AggregateError;
70
- (
71
- errors: Iterable<any>,
72
- message?: string,
73
- options?: ErrorOptions,
74
- ): AggregateError;
75
- }
@@ -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,145 +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/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
- /**
33
- * The `Intl.Segmenter` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
34
- *
35
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
36
- */
37
- interface Segmenter {
38
- /**
39
- * Returns `Segments` object containing the segments of the input string, using the segmenter's locale and granularity.
40
- *
41
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment)
42
- *
43
- * @param input - The text to be segmented as a `string`.
44
- *
45
- * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
46
- */
47
- segment(input: string): Segments;
48
- /**
49
- * The `resolvedOptions()` method of `Intl.Segmenter` instances returns a new object with properties reflecting the options computed during initialization of this `Segmenter` object.
50
- *
51
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/resolvedOptions)
52
- */
53
- resolvedOptions(): ResolvedSegmenterOptions;
54
- }
55
-
56
- interface ResolvedSegmenterOptions {
57
- locale: string;
58
- granularity: "grapheme" | "word" | "sentence";
59
- }
60
-
61
- interface SegmentIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
62
- [Symbol.iterator](): SegmentIterator<T>;
63
- }
64
-
65
- /**
66
- * A `Segments` object is an iterable collection of the segments of a text string. It is returned by a call to the `segment()` method of an `Intl.Segmenter` object.
67
- *
68
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments)
69
- */
70
- interface Segments {
71
- /**
72
- * Returns an object describing the segment in the original string that includes the code unit at a specified index.
73
- *
74
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments/containing)
75
- *
76
- * @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`.
77
- */
78
- containing(codeUnitIndex?: number): SegmentData | undefined;
79
-
80
- /** Returns an iterator to iterate over the segments. */
81
- [Symbol.iterator](): SegmentIterator<SegmentData>;
82
- }
83
-
84
- interface SegmentData {
85
- /** A string containing the segment extracted from the original input string. */
86
- segment: string;
87
- /** The code unit index in the original input string at which the segment begins. */
88
- index: number;
89
- /** The complete input string that was segmented. */
90
- input: string;
91
- /**
92
- * A boolean value only if granularity is "word"; otherwise, undefined.
93
- * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
94
- */
95
- isWordLike?: boolean;
96
- }
97
-
98
- /**
99
- * The `Intl.Segmenter` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
100
- *
101
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
102
- */
103
- const Segmenter: {
104
- prototype: Segmenter;
105
-
106
- /**
107
- * Creates a new `Intl.Segmenter` object.
108
- *
109
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
110
- * For the general form and interpretation of the `locales` argument,
111
- * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
112
- *
113
- * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
114
- * with some or all options of `SegmenterOptions`.
115
- *
116
- * @returns [Intl.Segmenter](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
117
- *
118
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
119
- */
120
- new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;
121
-
122
- /**
123
- * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
124
- *
125
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
126
- * For the general form and interpretation of the `locales` argument,
127
- * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
128
- *
129
- * @param options An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
130
- * with some or all possible options.
131
- *
132
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
133
- */
134
- supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
135
- };
136
-
137
- /**
138
- * Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
139
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
140
- *
141
- * @param key A string indicating the category of values to return.
142
- * @returns A sorted array of the supported values.
143
- */
144
- function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];
145
- }
@@ -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,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
- }