strict-ts-lib-v5.0 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 (77) hide show
  1. package/README.md +28 -0
  2. package/libs/decorators/index.d.ts +344 -0
  3. package/libs/decorators/legacy/index.d.ts +19 -0
  4. package/libs/dom/index.d.ts +25408 -0
  5. package/libs/dom/iterable/index.d.ts +630 -0
  6. package/libs/es2015/collection/index.d.ts +148 -0
  7. package/libs/es2015/core/index.d.ts +574 -0
  8. package/libs/es2015/generator/index.d.ts +65 -0
  9. package/libs/es2015/index.d.ts +12 -0
  10. package/libs/es2015/iterable/index.d.ts +522 -0
  11. package/libs/es2015/promise/index.d.ts +74 -0
  12. package/libs/es2015/proxy/index.d.ts +131 -0
  13. package/libs/es2015/reflect/index.d.ts +145 -0
  14. package/libs/es2015/symbol/index.d.ts +30 -0
  15. package/libs/es2015/symbol-wellknown/index.d.ts +331 -0
  16. package/libs/es2016/array-include/index.d.ts +115 -0
  17. package/libs/es2016/full/index.d.ts +7 -0
  18. package/libs/es2016/index.d.ts +4 -0
  19. package/libs/es2017/full/index.d.ts +7 -0
  20. package/libs/es2017/index.d.ts +8 -0
  21. package/libs/es2017/intl/index.d.ts +28 -0
  22. package/libs/es2017/object/index.d.ts +115 -0
  23. package/libs/es2017/sharedmemory/index.d.ts +244 -0
  24. package/libs/es2017/string/index.d.ts +29 -0
  25. package/libs/es2017/typedarrays/index.d.ts +37 -0
  26. package/libs/es2018/asyncgenerator/index.d.ts +69 -0
  27. package/libs/es2018/asynciterable/index.d.ts +31 -0
  28. package/libs/es2018/full/index.d.ts +7 -0
  29. package/libs/es2018/index.d.ts +8 -0
  30. package/libs/es2018/intl/index.d.ts +102 -0
  31. package/libs/es2018/promise/index.d.ts +14 -0
  32. package/libs/es2018/regexp/index.d.ts +21 -0
  33. package/libs/es2019/array/index.d.ts +94 -0
  34. package/libs/es2019/full/index.d.ts +7 -0
  35. package/libs/es2019/index.d.ts +8 -0
  36. package/libs/es2019/intl/index.d.ts +7 -0
  37. package/libs/es2019/object/index.d.ts +143 -0
  38. package/libs/es2019/string/index.d.ts +21 -0
  39. package/libs/es2019/symbol/index.d.ts +8 -0
  40. package/libs/es2020/bigint/index.d.ts +833 -0
  41. package/libs/es2020/date/index.d.ts +35 -0
  42. package/libs/es2020/full/index.d.ts +7 -0
  43. package/libs/es2020/index.d.ts +11 -0
  44. package/libs/es2020/intl/index.d.ts +433 -0
  45. package/libs/es2020/number/index.d.ts +15 -0
  46. package/libs/es2020/promise/index.d.ts +37 -0
  47. package/libs/es2020/sharedmemory/index.d.ts +119 -0
  48. package/libs/es2020/string/index.d.ts +12 -0
  49. package/libs/es2020/symbol-wellknown/index.d.ts +21 -0
  50. package/libs/es2021/full/index.d.ts +7 -0
  51. package/libs/es2021/index.d.ts +7 -0
  52. package/libs/es2021/intl/index.d.ts +164 -0
  53. package/libs/es2021/promise/index.d.ts +34 -0
  54. package/libs/es2021/string/index.d.ts +20 -0
  55. package/libs/es2021/weakref/index.d.ts +57 -0
  56. package/libs/es2022/array/index.d.ts +105 -0
  57. package/libs/es2022/error/index.d.ts +57 -0
  58. package/libs/es2022/full/index.d.ts +7 -0
  59. package/libs/es2022/index.d.ts +10 -0
  60. package/libs/es2022/intl/index.d.ts +98 -0
  61. package/libs/es2022/object/index.d.ts +41 -0
  62. package/libs/es2022/regexp/index.d.ts +23 -0
  63. package/libs/es2022/sharedmemory/index.d.ts +37 -0
  64. package/libs/es2022/string/index.d.ts +9 -0
  65. package/libs/es2023/array/index.d.ts +495 -0
  66. package/libs/es2023/full/index.d.ts +7 -0
  67. package/libs/es2023/index.d.ts +4 -0
  68. package/libs/es5/index.d.ts +5709 -0
  69. package/libs/es6/index.d.ts +7 -0
  70. package/libs/esnext/full/index.d.ts +7 -0
  71. package/libs/esnext/index.d.ts +4 -0
  72. package/libs/esnext/intl/index.d.ts +15 -0
  73. package/libs/scripthost/index.d.ts +310 -0
  74. package/libs/webworker/importscripts/index.d.ts +7 -0
  75. package/libs/webworker/index.d.ts +8426 -0
  76. package/libs/webworker/iterable/index.d.ts +439 -0
  77. package/package.json +23 -0
@@ -0,0 +1,439 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /////////////////////////////
4
+ /// Worker Iterable APIs
5
+ /////////////////////////////
6
+
7
+ interface Cache {
8
+ addAll(requests: Iterable<RequestInfo>): Promise<void>;
9
+ }
10
+
11
+ interface CanvasPath {
12
+ roundRect(
13
+ x: number,
14
+ y: number,
15
+ w: number,
16
+ h: number,
17
+ radii?: number | DOMPointInit | Iterable<number | DOMPointInit>,
18
+ ): void;
19
+ }
20
+
21
+ interface CanvasPathDrawingStyles {
22
+ setLineDash(segments: Iterable<number>): void;
23
+ }
24
+
25
+ interface DOMStringList {
26
+ [Symbol.iterator](): IterableIterator<string>;
27
+ }
28
+
29
+ interface FileList {
30
+ [Symbol.iterator](): IterableIterator<File>;
31
+ }
32
+
33
+ interface FontFaceSet extends Set<FontFace> {}
34
+
35
+ interface FormData {
36
+ [Symbol.iterator](): IterableIterator<readonly [string, FormDataEntryValue]>;
37
+ /** Returns an array of key, value pairs for every entry in the list. */
38
+ entries(): IterableIterator<readonly [string, FormDataEntryValue]>;
39
+ /** Returns a list of keys in the list. */
40
+ keys(): IterableIterator<string>;
41
+ /** Returns a list of values in the list. */
42
+ values(): IterableIterator<FormDataEntryValue>;
43
+ }
44
+
45
+ interface Headers {
46
+ [Symbol.iterator](): IterableIterator<readonly [string, string]>;
47
+ /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
48
+ entries(): IterableIterator<readonly [string, string]>;
49
+ /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
50
+ keys(): IterableIterator<string>;
51
+ /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
52
+ values(): IterableIterator<string>;
53
+ }
54
+
55
+ interface IDBDatabase {
56
+ /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
57
+ transaction(
58
+ storeNames: string | Iterable<string>,
59
+ mode?: IDBTransactionMode,
60
+ options?: IDBTransactionOptions,
61
+ ): IDBTransaction;
62
+ }
63
+
64
+ interface IDBObjectStore {
65
+ /**
66
+ * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
67
+ *
68
+ * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
69
+ */
70
+ createIndex(
71
+ name: string,
72
+ keyPath: string | Iterable<string>,
73
+ options?: IDBIndexParameters,
74
+ ): IDBIndex;
75
+ }
76
+
77
+ interface MessageEvent<T = unknown> {
78
+ /** @deprecated */
79
+ initMessageEvent(
80
+ type: string,
81
+ bubbles?: boolean,
82
+ cancelable?: boolean,
83
+ data?: unknown,
84
+ origin?: string,
85
+ lastEventId?: string,
86
+ source?: MessageEventSource | null,
87
+ ports?: Iterable<MessagePort>,
88
+ ): void;
89
+ }
90
+
91
+ interface SubtleCrypto {
92
+ deriveKey(
93
+ algorithm:
94
+ | AlgorithmIdentifier
95
+ | EcdhKeyDeriveParams
96
+ | HkdfParams
97
+ | Pbkdf2Params,
98
+ baseKey: CryptoKey,
99
+ derivedKeyType:
100
+ | AlgorithmIdentifier
101
+ | AesDerivedKeyParams
102
+ | HmacImportParams
103
+ | HkdfParams
104
+ | Pbkdf2Params,
105
+ extractable: boolean,
106
+ keyUsages: Iterable<KeyUsage>,
107
+ ): Promise<CryptoKey>;
108
+ generateKey(
109
+ algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
110
+ extractable: boolean,
111
+ keyUsages: ReadonlyArray<KeyUsage>,
112
+ ): Promise<CryptoKeyPair>;
113
+ generateKey(
114
+ algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
115
+ extractable: boolean,
116
+ keyUsages: ReadonlyArray<KeyUsage>,
117
+ ): Promise<CryptoKey>;
118
+ generateKey(
119
+ algorithm: AlgorithmIdentifier,
120
+ extractable: boolean,
121
+ keyUsages: Iterable<KeyUsage>,
122
+ ): Promise<CryptoKeyPair | CryptoKey>;
123
+ importKey(
124
+ format: 'jwk',
125
+ keyData: JsonWebKey,
126
+ algorithm:
127
+ | AlgorithmIdentifier
128
+ | RsaHashedImportParams
129
+ | EcKeyImportParams
130
+ | HmacImportParams
131
+ | AesKeyAlgorithm,
132
+ extractable: boolean,
133
+ keyUsages: ReadonlyArray<KeyUsage>,
134
+ ): Promise<CryptoKey>;
135
+ importKey(
136
+ format: Exclude<KeyFormat, 'jwk'>,
137
+ keyData: BufferSource,
138
+ algorithm:
139
+ | AlgorithmIdentifier
140
+ | RsaHashedImportParams
141
+ | EcKeyImportParams
142
+ | HmacImportParams
143
+ | AesKeyAlgorithm,
144
+ extractable: boolean,
145
+ keyUsages: Iterable<KeyUsage>,
146
+ ): Promise<CryptoKey>;
147
+ unwrapKey(
148
+ format: KeyFormat,
149
+ wrappedKey: BufferSource,
150
+ unwrappingKey: CryptoKey,
151
+ unwrapAlgorithm:
152
+ | AlgorithmIdentifier
153
+ | RsaOaepParams
154
+ | AesCtrParams
155
+ | AesCbcParams
156
+ | AesGcmParams,
157
+ unwrappedKeyAlgorithm:
158
+ | AlgorithmIdentifier
159
+ | RsaHashedImportParams
160
+ | EcKeyImportParams
161
+ | HmacImportParams
162
+ | AesKeyAlgorithm,
163
+ extractable: boolean,
164
+ keyUsages: Iterable<KeyUsage>,
165
+ ): Promise<CryptoKey>;
166
+ }
167
+
168
+ interface URLSearchParams {
169
+ [Symbol.iterator](): IterableIterator<readonly [string, string]>;
170
+ /** Returns an array of key, value pairs for every entry in the search params. */
171
+ entries(): IterableIterator<readonly [string, string]>;
172
+ /** Returns a list of keys in the search params. */
173
+ keys(): IterableIterator<string>;
174
+ /** Returns a list of values in the search params. */
175
+ values(): IterableIterator<string>;
176
+ }
177
+
178
+ interface WEBGL_draw_buffers {
179
+ drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
180
+ }
181
+
182
+ interface WEBGL_multi_draw {
183
+ multiDrawArraysInstancedWEBGL(
184
+ mode: GLenum,
185
+ firstsList: Int32Array | Iterable<GLint>,
186
+ firstsOffset: GLuint,
187
+ countsList: Int32Array | Iterable<GLsizei>,
188
+ countsOffset: GLuint,
189
+ instanceCountsList: Int32Array | Iterable<GLsizei>,
190
+ instanceCountsOffset: GLuint,
191
+ drawcount: GLsizei,
192
+ ): void;
193
+ multiDrawArraysWEBGL(
194
+ mode: GLenum,
195
+ firstsList: Int32Array | Iterable<GLint>,
196
+ firstsOffset: GLuint,
197
+ countsList: Int32Array | Iterable<GLsizei>,
198
+ countsOffset: GLuint,
199
+ drawcount: GLsizei,
200
+ ): void;
201
+ multiDrawElementsInstancedWEBGL(
202
+ mode: GLenum,
203
+ countsList: Int32Array | Iterable<GLsizei>,
204
+ countsOffset: GLuint,
205
+ type: GLenum,
206
+ offsetsList: Int32Array | Iterable<GLsizei>,
207
+ offsetsOffset: GLuint,
208
+ instanceCountsList: Int32Array | Iterable<GLsizei>,
209
+ instanceCountsOffset: GLuint,
210
+ drawcount: GLsizei,
211
+ ): void;
212
+ multiDrawElementsWEBGL(
213
+ mode: GLenum,
214
+ countsList: Int32Array | Iterable<GLsizei>,
215
+ countsOffset: GLuint,
216
+ type: GLenum,
217
+ offsetsList: Int32Array | Iterable<GLsizei>,
218
+ offsetsOffset: GLuint,
219
+ drawcount: GLsizei,
220
+ ): void;
221
+ }
222
+
223
+ interface WebGL2RenderingContextBase {
224
+ clearBufferfv(
225
+ buffer: GLenum,
226
+ drawbuffer: GLint,
227
+ values: Iterable<GLfloat>,
228
+ srcOffset?: GLuint,
229
+ ): void;
230
+ clearBufferiv(
231
+ buffer: GLenum,
232
+ drawbuffer: GLint,
233
+ values: Iterable<GLint>,
234
+ srcOffset?: GLuint,
235
+ ): void;
236
+ clearBufferuiv(
237
+ buffer: GLenum,
238
+ drawbuffer: GLint,
239
+ values: Iterable<GLuint>,
240
+ srcOffset?: GLuint,
241
+ ): void;
242
+ drawBuffers(buffers: Iterable<GLenum>): void;
243
+ getActiveUniforms(
244
+ program: WebGLProgram,
245
+ uniformIndices: Iterable<GLuint>,
246
+ pname: GLenum,
247
+ ): unknown;
248
+ getUniformIndices(
249
+ program: WebGLProgram,
250
+ uniformNames: Iterable<string>,
251
+ ): Iterable<GLuint> | null;
252
+ invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
253
+ invalidateSubFramebuffer(
254
+ target: GLenum,
255
+ attachments: Iterable<GLenum>,
256
+ x: GLint,
257
+ y: GLint,
258
+ width: GLsizei,
259
+ height: GLsizei,
260
+ ): void;
261
+ transformFeedbackVaryings(
262
+ program: WebGLProgram,
263
+ varyings: Iterable<string>,
264
+ bufferMode: GLenum,
265
+ ): void;
266
+ uniform1uiv(
267
+ location: WebGLUniformLocation | null,
268
+ data: Iterable<GLuint>,
269
+ srcOffset?: GLuint,
270
+ srcLength?: GLuint,
271
+ ): void;
272
+ uniform2uiv(
273
+ location: WebGLUniformLocation | null,
274
+ data: Iterable<GLuint>,
275
+ srcOffset?: GLuint,
276
+ srcLength?: GLuint,
277
+ ): void;
278
+ uniform3uiv(
279
+ location: WebGLUniformLocation | null,
280
+ data: Iterable<GLuint>,
281
+ srcOffset?: GLuint,
282
+ srcLength?: GLuint,
283
+ ): void;
284
+ uniform4uiv(
285
+ location: WebGLUniformLocation | null,
286
+ data: Iterable<GLuint>,
287
+ srcOffset?: GLuint,
288
+ srcLength?: GLuint,
289
+ ): void;
290
+ uniformMatrix2x3fv(
291
+ location: WebGLUniformLocation | null,
292
+ transpose: GLboolean,
293
+ data: Iterable<GLfloat>,
294
+ srcOffset?: GLuint,
295
+ srcLength?: GLuint,
296
+ ): void;
297
+ uniformMatrix2x4fv(
298
+ location: WebGLUniformLocation | null,
299
+ transpose: GLboolean,
300
+ data: Iterable<GLfloat>,
301
+ srcOffset?: GLuint,
302
+ srcLength?: GLuint,
303
+ ): void;
304
+ uniformMatrix3x2fv(
305
+ location: WebGLUniformLocation | null,
306
+ transpose: GLboolean,
307
+ data: Iterable<GLfloat>,
308
+ srcOffset?: GLuint,
309
+ srcLength?: GLuint,
310
+ ): void;
311
+ uniformMatrix3x4fv(
312
+ location: WebGLUniformLocation | null,
313
+ transpose: GLboolean,
314
+ data: Iterable<GLfloat>,
315
+ srcOffset?: GLuint,
316
+ srcLength?: GLuint,
317
+ ): void;
318
+ uniformMatrix4x2fv(
319
+ location: WebGLUniformLocation | null,
320
+ transpose: GLboolean,
321
+ data: Iterable<GLfloat>,
322
+ srcOffset?: GLuint,
323
+ srcLength?: GLuint,
324
+ ): void;
325
+ uniformMatrix4x3fv(
326
+ location: WebGLUniformLocation | null,
327
+ transpose: GLboolean,
328
+ data: Iterable<GLfloat>,
329
+ srcOffset?: GLuint,
330
+ srcLength?: GLuint,
331
+ ): void;
332
+ vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
333
+ vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
334
+ }
335
+
336
+ interface WebGL2RenderingContextOverloads {
337
+ uniform1fv(
338
+ location: WebGLUniformLocation | null,
339
+ data: Iterable<GLfloat>,
340
+ srcOffset?: GLuint,
341
+ srcLength?: GLuint,
342
+ ): void;
343
+ uniform1iv(
344
+ location: WebGLUniformLocation | null,
345
+ data: Iterable<GLint>,
346
+ srcOffset?: GLuint,
347
+ srcLength?: GLuint,
348
+ ): void;
349
+ uniform2fv(
350
+ location: WebGLUniformLocation | null,
351
+ data: Iterable<GLfloat>,
352
+ srcOffset?: GLuint,
353
+ srcLength?: GLuint,
354
+ ): void;
355
+ uniform2iv(
356
+ location: WebGLUniformLocation | null,
357
+ data: Iterable<GLint>,
358
+ srcOffset?: GLuint,
359
+ srcLength?: GLuint,
360
+ ): void;
361
+ uniform3fv(
362
+ location: WebGLUniformLocation | null,
363
+ data: Iterable<GLfloat>,
364
+ srcOffset?: GLuint,
365
+ srcLength?: GLuint,
366
+ ): void;
367
+ uniform3iv(
368
+ location: WebGLUniformLocation | null,
369
+ data: Iterable<GLint>,
370
+ srcOffset?: GLuint,
371
+ srcLength?: GLuint,
372
+ ): void;
373
+ uniform4fv(
374
+ location: WebGLUniformLocation | null,
375
+ data: Iterable<GLfloat>,
376
+ srcOffset?: GLuint,
377
+ srcLength?: GLuint,
378
+ ): void;
379
+ uniform4iv(
380
+ location: WebGLUniformLocation | null,
381
+ data: Iterable<GLint>,
382
+ srcOffset?: GLuint,
383
+ srcLength?: GLuint,
384
+ ): void;
385
+ uniformMatrix2fv(
386
+ location: WebGLUniformLocation | null,
387
+ transpose: GLboolean,
388
+ data: Iterable<GLfloat>,
389
+ srcOffset?: GLuint,
390
+ srcLength?: GLuint,
391
+ ): void;
392
+ uniformMatrix3fv(
393
+ location: WebGLUniformLocation | null,
394
+ transpose: GLboolean,
395
+ data: Iterable<GLfloat>,
396
+ srcOffset?: GLuint,
397
+ srcLength?: GLuint,
398
+ ): void;
399
+ uniformMatrix4fv(
400
+ location: WebGLUniformLocation | null,
401
+ transpose: GLboolean,
402
+ data: Iterable<GLfloat>,
403
+ srcOffset?: GLuint,
404
+ srcLength?: GLuint,
405
+ ): void;
406
+ }
407
+
408
+ interface WebGLRenderingContextBase {
409
+ vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
410
+ vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
411
+ vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
412
+ vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
413
+ }
414
+
415
+ interface WebGLRenderingContextOverloads {
416
+ uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
417
+ uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
418
+ uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
419
+ uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
420
+ uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
421
+ uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
422
+ uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
423
+ uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
424
+ uniformMatrix2fv(
425
+ location: WebGLUniformLocation | null,
426
+ transpose: GLboolean,
427
+ value: Iterable<GLfloat>,
428
+ ): void;
429
+ uniformMatrix3fv(
430
+ location: WebGLUniformLocation | null,
431
+ transpose: GLboolean,
432
+ value: Iterable<GLfloat>,
433
+ ): void;
434
+ uniformMatrix4fv(
435
+ location: WebGLUniformLocation | null,
436
+ transpose: GLboolean,
437
+ value: Iterable<GLfloat>,
438
+ ): void;
439
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "strict-ts-lib-v5.0",
3
+ "version": "0.4.0",
4
+ "private": false,
5
+ "description": "Strict TypeScript 5.0.4 standard library (all libs in one package)",
6
+ "license": "Apache-2.0",
7
+ "author": "noshiro-pf <noshiro.pf@gmail.com>",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/noshiro-pf/strict-typescript-lib.git"
11
+ },
12
+ "files": [
13
+ "libs"
14
+ ],
15
+ "type": "module",
16
+ "sideEffects": false,
17
+ "dependencies": {
18
+ "ts-type-forge": "^9.0.0"
19
+ },
20
+ "peerDependencies": {
21
+ "typescript": ">=5.0.0 <5.1.0"
22
+ }
23
+ }