strict-ts-lib-v5.7 0.4.0

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 (97) hide show
  1. package/README.md +28 -0
  2. package/libs/decorators/index.d.ts +362 -0
  3. package/libs/decorators/legacy/index.d.ts +19 -0
  4. package/libs/dom/asynciterable/index.d.ts +41 -0
  5. package/libs/dom/index.d.ts +35994 -0
  6. package/libs/dom/iterable/index.d.ts +793 -0
  7. package/libs/es2015/collection/index.d.ts +148 -0
  8. package/libs/es2015/core/index.d.ts +647 -0
  9. package/libs/es2015/generator/index.d.ts +65 -0
  10. package/libs/es2015/index.d.ts +12 -0
  11. package/libs/es2015/iterable/index.d.ts +645 -0
  12. package/libs/es2015/promise/index.d.ts +74 -0
  13. package/libs/es2015/proxy/index.d.ts +131 -0
  14. package/libs/es2015/reflect/index.d.ts +145 -0
  15. package/libs/es2015/symbol/index.d.ts +30 -0
  16. package/libs/es2015/symbol-wellknown/index.d.ts +331 -0
  17. package/libs/es2016/array-include/index.d.ts +115 -0
  18. package/libs/es2016/full/index.d.ts +7 -0
  19. package/libs/es2016/index.d.ts +5 -0
  20. package/libs/es2016/intl/index.d.ts +15 -0
  21. package/libs/es2017/arraybuffer/index.d.ts +5 -0
  22. package/libs/es2017/date/index.d.ts +23 -0
  23. package/libs/es2017/full/index.d.ts +7 -0
  24. package/libs/es2017/index.d.ts +10 -0
  25. package/libs/es2017/intl/index.d.ts +28 -0
  26. package/libs/es2017/object/index.d.ts +115 -0
  27. package/libs/es2017/sharedmemory/index.d.ts +248 -0
  28. package/libs/es2017/string/index.d.ts +29 -0
  29. package/libs/es2017/typedarrays/index.d.ts +37 -0
  30. package/libs/es2018/asyncgenerator/index.d.ts +69 -0
  31. package/libs/es2018/asynciterable/index.d.ts +49 -0
  32. package/libs/es2018/full/index.d.ts +8 -0
  33. package/libs/es2018/index.d.ts +8 -0
  34. package/libs/es2018/intl/index.d.ts +92 -0
  35. package/libs/es2018/promise/index.d.ts +14 -0
  36. package/libs/es2018/regexp/index.d.ts +21 -0
  37. package/libs/es2019/array/index.d.ts +94 -0
  38. package/libs/es2019/full/index.d.ts +8 -0
  39. package/libs/es2019/index.d.ts +8 -0
  40. package/libs/es2019/intl/index.d.ts +7 -0
  41. package/libs/es2019/object/index.d.ts +143 -0
  42. package/libs/es2019/string/index.d.ts +21 -0
  43. package/libs/es2019/symbol/index.d.ts +8 -0
  44. package/libs/es2020/bigint/index.d.ts +904 -0
  45. package/libs/es2020/date/index.d.ts +35 -0
  46. package/libs/es2020/full/index.d.ts +8 -0
  47. package/libs/es2020/index.d.ts +11 -0
  48. package/libs/es2020/intl/index.d.ts +494 -0
  49. package/libs/es2020/number/index.d.ts +15 -0
  50. package/libs/es2020/promise/index.d.ts +37 -0
  51. package/libs/es2020/sharedmemory/index.d.ts +146 -0
  52. package/libs/es2020/string/index.d.ts +32 -0
  53. package/libs/es2020/symbol-wellknown/index.d.ts +29 -0
  54. package/libs/es2021/full/index.d.ts +8 -0
  55. package/libs/es2021/index.d.ts +7 -0
  56. package/libs/es2021/intl/index.d.ts +161 -0
  57. package/libs/es2021/promise/index.d.ts +34 -0
  58. package/libs/es2021/string/index.d.ts +20 -0
  59. package/libs/es2021/weakref/index.d.ts +62 -0
  60. package/libs/es2022/array/index.d.ts +105 -0
  61. package/libs/es2022/error/index.d.ts +59 -0
  62. package/libs/es2022/full/index.d.ts +8 -0
  63. package/libs/es2022/index.d.ts +9 -0
  64. package/libs/es2022/intl/index.d.ts +120 -0
  65. package/libs/es2022/object/index.d.ts +41 -0
  66. package/libs/es2022/regexp/index.d.ts +23 -0
  67. package/libs/es2022/string/index.d.ts +9 -0
  68. package/libs/es2023/array/index.d.ts +915 -0
  69. package/libs/es2023/collection/index.d.ts +5 -0
  70. package/libs/es2023/full/index.d.ts +8 -0
  71. package/libs/es2023/index.d.ts +6 -0
  72. package/libs/es2023/intl/index.d.ts +106 -0
  73. package/libs/es2024/arraybuffer/index.d.ts +52 -0
  74. package/libs/es2024/collection/index.d.ts +13 -0
  75. package/libs/es2024/full/index.d.ts +8 -0
  76. package/libs/es2024/index.d.ts +10 -0
  77. package/libs/es2024/object/index.d.ts +13 -0
  78. package/libs/es2024/promise/index.d.ts +19 -0
  79. package/libs/es2024/regexp/index.d.ts +9 -0
  80. package/libs/es2024/sharedmemory/index.d.ts +69 -0
  81. package/libs/es2024/string/index.d.ts +13 -0
  82. package/libs/es5/index.d.ts +5793 -0
  83. package/libs/es6/index.d.ts +7 -0
  84. package/libs/esnext/array/index.d.ts +28 -0
  85. package/libs/esnext/collection/index.d.ts +80 -0
  86. package/libs/esnext/decorators/index.d.ts +12 -0
  87. package/libs/esnext/disposable/index.d.ts +175 -0
  88. package/libs/esnext/full/index.d.ts +8 -0
  89. package/libs/esnext/index.d.ts +9 -0
  90. package/libs/esnext/intl/index.d.ts +5 -0
  91. package/libs/esnext/iterator/index.d.ts +172 -0
  92. package/libs/scripthost/index.d.ts +310 -0
  93. package/libs/webworker/asynciterable/index.d.ts +41 -0
  94. package/libs/webworker/importscripts/index.d.ts +7 -0
  95. package/libs/webworker/index.d.ts +12079 -0
  96. package/libs/webworker/iterable/index.d.ts +578 -0
  97. package/package.json +23 -0
@@ -0,0 +1,310 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /////////////////////////////
4
+ /// Windows Script Host APIS
5
+ /////////////////////////////
6
+
7
+ interface ActiveXObject {
8
+ new (s: string): unknown;
9
+ }
10
+ declare const ActiveXObject: ActiveXObject;
11
+
12
+ interface ITextWriter {
13
+ Write(s: string): void;
14
+ WriteLine(s: string): void;
15
+ Close(): void;
16
+ }
17
+
18
+ interface TextStreamBase {
19
+ /**
20
+ * The column number of the current character position in an input stream.
21
+ */
22
+ readonly Column: number;
23
+
24
+ /**
25
+ * The current line number in an input stream.
26
+ */
27
+ readonly Line: number;
28
+
29
+ /**
30
+ * Closes a text stream.
31
+ * It is not necessary to close standard streams; they close automatically when the process ends. If
32
+ * you close a standard stream, be aware that any other pointers to that standard stream become invalid.
33
+ */
34
+ Close(): void;
35
+ }
36
+
37
+ interface TextStreamWriter extends TextStreamBase {
38
+ /**
39
+ * Sends a string to an output stream.
40
+ */
41
+ Write(s: string): void;
42
+
43
+ /**
44
+ * Sends a specified number of blank lines (newline characters) to an output stream.
45
+ */
46
+ WriteBlankLines(intLines: number): void;
47
+
48
+ /**
49
+ * Sends a string followed by a newline character to an output stream.
50
+ */
51
+ WriteLine(s: string): void;
52
+ }
53
+
54
+ interface TextStreamReader extends TextStreamBase {
55
+ /**
56
+ * Returns a specified number of characters from an input stream, starting at the current pointer position.
57
+ * Does not return until the ENTER key is pressed.
58
+ * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
59
+ */
60
+ Read(characters: number): string;
61
+
62
+ /**
63
+ * Returns all characters from an input stream.
64
+ * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
65
+ */
66
+ ReadAll(): string;
67
+
68
+ /**
69
+ * Returns an entire line from an input stream.
70
+ * Although this method extracts the newline character, it does not add it to the returned string.
71
+ * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
72
+ */
73
+ ReadLine(): string;
74
+
75
+ /**
76
+ * Skips a specified number of characters when reading from an input text stream.
77
+ * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
78
+ * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
79
+ */
80
+ Skip(characters: number): void;
81
+
82
+ /**
83
+ * Skips the next line when reading from an input text stream.
84
+ * Can only be used on a stream in reading mode, not writing or appending mode.
85
+ */
86
+ SkipLine(): void;
87
+
88
+ /**
89
+ * Indicates whether the stream pointer position is at the end of a line.
90
+ */
91
+ readonly AtEndOfLine: boolean;
92
+
93
+ /**
94
+ * Indicates whether the stream pointer position is at the end of a stream.
95
+ */
96
+ readonly AtEndOfStream: boolean;
97
+ }
98
+
99
+ declare const WScript: {
100
+ /**
101
+ * Outputs text to either a message box (under WScript.exe) or the command console window followed by
102
+ * a newline (under CScript.exe).
103
+ */
104
+ Echo(s: unknown): void;
105
+
106
+ /**
107
+ * Exposes the write-only error output stream for the current script.
108
+ * Can be accessed only while using CScript.exe.
109
+ */
110
+ readonly StdErr: TextStreamWriter;
111
+
112
+ /**
113
+ * Exposes the write-only output stream for the current script.
114
+ * Can be accessed only while using CScript.exe.
115
+ */
116
+ readonly StdOut: TextStreamWriter;
117
+ readonly Arguments: { readonly length: number; Item(n: number): string };
118
+
119
+ /**
120
+ * The full path of the currently running script.
121
+ */
122
+ readonly ScriptFullName: string;
123
+
124
+ /**
125
+ * Forces the script to stop immediately, with an optional exit code.
126
+ */
127
+ Quit(exitCode?: number): number;
128
+
129
+ /**
130
+ * The Windows Script Host build version number.
131
+ */
132
+ readonly BuildVersion: number;
133
+
134
+ /**
135
+ * Fully qualified path of the host executable.
136
+ */
137
+ readonly FullName: string;
138
+
139
+ /**
140
+ * Gets/sets the script mode - interactive(true) or batch(false).
141
+ */
142
+ readonly Interactive: boolean;
143
+
144
+ /**
145
+ * The name of the host executable (WScript.exe or CScript.exe).
146
+ */
147
+ readonly Name: string;
148
+
149
+ /**
150
+ * Path of the directory containing the host executable.
151
+ */
152
+ readonly Path: string;
153
+
154
+ /**
155
+ * The filename of the currently running script.
156
+ */
157
+ readonly ScriptName: string;
158
+
159
+ /**
160
+ * Exposes the read-only input stream for the current script.
161
+ * Can be accessed only while using CScript.exe.
162
+ */
163
+ readonly StdIn: TextStreamReader;
164
+
165
+ /**
166
+ * Windows Script Host version
167
+ */
168
+ readonly Version: string;
169
+
170
+ /**
171
+ * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
172
+ */
173
+ ConnectObject(objEventSource: unknown, strPrefix: string): void;
174
+
175
+ /**
176
+ * Creates a COM object.
177
+ * @param strProgiID
178
+ * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
179
+ */
180
+ CreateObject(strProgID: string, strPrefix?: string): unknown;
181
+
182
+ /**
183
+ * Disconnects a COM object from its event sources.
184
+ */
185
+ DisconnectObject(obj: unknown): void;
186
+
187
+ /**
188
+ * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
189
+ * @param strPathname Fully qualified path to the file containing the object persisted to disk.
190
+ * For objects in memory, pass a zero-length string.
191
+ * @param strProgID
192
+ * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
193
+ */
194
+ GetObject(
195
+ strPathname: string,
196
+ strProgID?: string,
197
+ strPrefix?: string,
198
+ ): unknown;
199
+
200
+ /**
201
+ * Suspends script execution for a specified length of time, then continues execution.
202
+ * @param intTime Interval (in milliseconds) to suspend script execution.
203
+ */
204
+ Sleep(intTime: number): void;
205
+ };
206
+
207
+ /**
208
+ * WSH is an alias for WScript under Windows Script Host
209
+ */
210
+ declare const WSH: typeof WScript;
211
+
212
+ /**
213
+ * Represents an Automation SAFEARRAY
214
+ */
215
+ declare class SafeArray<T = unknown> {
216
+ private constructor();
217
+ private SafeArray_typekey: SafeArray<T>;
218
+ }
219
+
220
+ /**
221
+ * Allows enumerating over a COM collection, which may not have indexed item access.
222
+ */
223
+ interface Enumerator<T = unknown> {
224
+ /**
225
+ * Returns true if the current item is the last one in the collection, or the collection is empty,
226
+ * or the current item is undefined.
227
+ */
228
+ atEnd(): boolean;
229
+
230
+ /**
231
+ * Returns the current item in the collection
232
+ */
233
+ item(): T;
234
+
235
+ /**
236
+ * Resets the current item in the collection to the first item. If there are no items in the collection,
237
+ * the current item is set to undefined.
238
+ */
239
+ moveFirst(): void;
240
+
241
+ /**
242
+ * Moves the current item to the next item in the collection. If the enumerator is at the end of
243
+ * the collection or the collection is empty, the current item is set to undefined.
244
+ */
245
+ moveNext(): void;
246
+ }
247
+
248
+ interface EnumeratorConstructor {
249
+ new <T = unknown>(safearray: SafeArray<T>): Enumerator<T>;
250
+ new <T = unknown>(collection: { Item(index: unknown): T }): Enumerator<T>;
251
+ new <T = unknown>(collection: unknown): Enumerator<T>;
252
+ }
253
+
254
+ declare const Enumerator: EnumeratorConstructor;
255
+
256
+ /**
257
+ * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
258
+ */
259
+ interface VBArray<T = unknown> {
260
+ /**
261
+ * Returns the number of dimensions (1-based).
262
+ */
263
+ dimensions(): number;
264
+
265
+ /**
266
+ * Takes an index for each dimension in the array, and returns the item at the corresponding location.
267
+ */
268
+ getItem(dimension1Index: number, ...dimensionNIndexes: readonly number[]): T;
269
+
270
+ /**
271
+ * Returns the smallest available index for a given dimension.
272
+ * @param dimension 1-based dimension (defaults to 1)
273
+ */
274
+ lbound(dimension?: number): number;
275
+
276
+ /**
277
+ * Returns the largest available index for a given dimension.
278
+ * @param dimension 1-based dimension (defaults to 1)
279
+ */
280
+ ubound(dimension?: number): number;
281
+
282
+ /**
283
+ * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
284
+ * each successive dimension is appended to the end of the array.
285
+ * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
286
+ */
287
+ toArray(): T[];
288
+ }
289
+
290
+ interface VBArrayConstructor {
291
+ new <T = unknown>(safeArray: SafeArray<T>): VBArray<T>;
292
+ }
293
+
294
+ declare const VBArray: VBArrayConstructor;
295
+
296
+ /**
297
+ * Automation date (VT_DATE)
298
+ */
299
+ declare class VarDate {
300
+ private constructor();
301
+ private VarDate_typekey: VarDate;
302
+ }
303
+
304
+ interface DateConstructor {
305
+ new (vd: VarDate): Date;
306
+ }
307
+
308
+ interface Date {
309
+ readonly getVarDate: () => VarDate;
310
+ }
@@ -0,0 +1,41 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /////////////////////////////
4
+ /// Worker Async Iterable APIs
5
+ /////////////////////////////
6
+
7
+ interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<
8
+ T,
9
+ BuiltinIteratorReturn,
10
+ unknown
11
+ > {
12
+ [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
13
+ }
14
+
15
+ interface FileSystemDirectoryHandle {
16
+ [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<
17
+ readonly [string, FileSystemHandle]
18
+ >;
19
+ entries(): FileSystemDirectoryHandleAsyncIterator<
20
+ readonly [string, FileSystemHandle]
21
+ >;
22
+ keys(): FileSystemDirectoryHandleAsyncIterator<string>;
23
+ values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
24
+ }
25
+
26
+ interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<
27
+ T,
28
+ BuiltinIteratorReturn,
29
+ unknown
30
+ > {
31
+ [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
32
+ }
33
+
34
+ interface ReadableStream<R = unknown> {
35
+ [Symbol.asyncIterator](
36
+ options?: ReadableStreamIteratorOptions,
37
+ ): ReadableStreamAsyncIterator<R>;
38
+ values(
39
+ options?: ReadableStreamIteratorOptions,
40
+ ): ReadableStreamAsyncIterator<R>;
41
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /////////////////////////////
4
+ /// WorkerGlobalScope APIs
5
+ /////////////////////////////
6
+ // These are only available in a Web Worker
7
+ declare function importScripts(...urls: readonly string[]): void;