@stencil/core 4.38.3 → 4.39.0-dev.1765343168.3771af0

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 (57) hide show
  1. package/cli/index.cjs +2 -1
  2. package/cli/index.js +2 -1
  3. package/cli/package.json +1 -1
  4. package/compiler/lib.dom.d.ts +4826 -14645
  5. package/compiler/lib.dom.iterable.d.ts +25 -103
  6. package/compiler/lib.es2015.symbol.wellknown.d.ts +1 -1
  7. package/compiler/lib.es2017.sharedmemory.d.ts +1 -1
  8. package/compiler/lib.es2022.intl.d.ts +1 -25
  9. package/compiler/lib.es5.d.ts +2 -9
  10. package/compiler/lib.esnext.d.ts +0 -2
  11. package/compiler/lib.esnext.float16.d.ts +0 -2
  12. package/compiler/lib.webworker.d.ts +1342 -4598
  13. package/compiler/lib.webworker.iterable.d.ts +19 -72
  14. package/compiler/package.json +1 -1
  15. package/compiler/stencil.js +23984 -14073
  16. package/dev-server/client/index.js +1 -1
  17. package/dev-server/client/package.json +1 -1
  18. package/dev-server/connector.html +2 -2
  19. package/dev-server/index.js +1 -1
  20. package/dev-server/package.json +1 -1
  21. package/dev-server/server-process.js +6 -5
  22. package/internal/app-data/index.cjs +1 -0
  23. package/internal/app-data/index.js +1 -0
  24. package/internal/app-data/package.json +1 -1
  25. package/internal/app-globals/package.json +1 -1
  26. package/internal/client/index.js +29 -5
  27. package/internal/client/package.json +1 -1
  28. package/internal/client/patch-browser.js +1 -1
  29. package/internal/hydrate/index.js +35 -5
  30. package/internal/hydrate/package.json +1 -1
  31. package/internal/hydrate/runner.d.ts +12 -0
  32. package/internal/hydrate/runner.js +1357 -1330
  33. package/internal/package.json +1 -1
  34. package/internal/stencil-core/index.d.ts +2 -0
  35. package/internal/stencil-private.d.ts +3 -0
  36. package/internal/stencil-public-compiler.d.ts +13 -0
  37. package/internal/stencil-public-runtime.d.ts +43 -0
  38. package/internal/testing/index.js +30 -4
  39. package/internal/testing/package.json +1 -1
  40. package/mock-doc/index.cjs +226 -226
  41. package/mock-doc/index.js +226 -226
  42. package/mock-doc/package.json +1 -1
  43. package/package.json +6 -3
  44. package/screenshot/index.js +2 -1
  45. package/screenshot/package.json +1 -1
  46. package/screenshot/pixel-match.js +3 -3
  47. package/sys/node/autoprefixer.js +2 -2
  48. package/sys/node/glob.js +1 -1
  49. package/sys/node/index.js +18 -18
  50. package/sys/node/node-fetch.js +1 -1
  51. package/sys/node/package.json +1 -1
  52. package/sys/node/worker.js +1 -1
  53. package/testing/index.js +35 -7
  54. package/testing/package.json +1 -1
  55. package/testing/puppeteer/puppeteer-browser.d.ts +1 -1
  56. package/compiler/lib.esnext.error.d.ts +0 -24
  57. package/compiler/lib.esnext.sharedmemory.d.ts +0 -25
@@ -21,11 +21,7 @@ and limitations under the License.
21
21
  /////////////////////////////
22
22
 
23
23
  interface AudioParam {
24
- /**
25
- * The **`setValueCurveAtTime()`** method of the following a curve defined by a list of values.
26
- *
27
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)
28
- */
24
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
29
25
  setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
30
26
  }
31
27
 
@@ -33,17 +29,9 @@ interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
33
29
  }
34
30
 
35
31
  interface BaseAudioContext {
36
- /**
37
- * The **`createIIRFilter()`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.
38
- *
39
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
40
- */
32
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
41
33
  createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
42
- /**
43
- * The `createPeriodicWave()` method of the BaseAudioContext interface is used to create a PeriodicWave.
44
- *
45
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)
46
- */
34
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
47
35
  createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
48
36
  }
49
37
 
@@ -81,11 +69,7 @@ interface CSSUnparsedValue {
81
69
  }
82
70
 
83
71
  interface Cache {
84
- /**
85
- * The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
86
- *
87
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
88
- */
72
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
89
73
  addAll(requests: Iterable<RequestInfo>): Promise<void>;
90
74
  }
91
75
 
@@ -99,21 +83,6 @@ interface CanvasPathDrawingStyles {
99
83
  setLineDash(segments: Iterable<number>): void;
100
84
  }
101
85
 
102
- interface CookieStoreManager {
103
- /**
104
- * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
105
- *
106
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
107
- */
108
- subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
109
- /**
110
- * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
111
- *
112
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
113
- */
114
- unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
115
- }
116
-
117
86
  interface CustomStateSet extends Set<string> {
118
87
  }
119
88
 
@@ -202,7 +171,7 @@ interface HighlightRegistry extends Map<string, Highlight> {
202
171
 
203
172
  interface IDBDatabase {
204
173
  /**
205
- * The **`transaction`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
174
+ * 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.
206
175
  *
207
176
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
208
177
  */
@@ -211,7 +180,9 @@ interface IDBDatabase {
211
180
 
212
181
  interface IDBObjectStore {
213
182
  /**
214
- * The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.
183
+ * 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.
184
+ *
185
+ * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
215
186
  *
216
187
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
217
188
  */
@@ -226,11 +197,7 @@ interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
226
197
  }
227
198
 
228
199
  interface MIDIOutput {
229
- /**
230
- * The **`send()`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.
231
- *
232
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)
233
- */
200
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
234
201
  send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
235
202
  }
236
203
 
@@ -267,17 +234,12 @@ interface NamedNodeMap {
267
234
 
268
235
  interface Navigator {
269
236
  /**
270
- * The **`requestMediaKeySystemAccess()`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
271
237
  * Available only in secure contexts.
272
238
  *
273
239
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
274
240
  */
275
241
  requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
276
- /**
277
- * The **`vibrate()`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.
278
- *
279
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)
280
- */
242
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
281
243
  vibrate(pattern: Iterable<number>): boolean;
282
244
  }
283
245
 
@@ -310,11 +272,7 @@ interface PluginArray {
310
272
  }
311
273
 
312
274
  interface RTCRtpTransceiver {
313
- /**
314
- * The **`setCodecPreferences()`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.
315
- *
316
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
317
- */
275
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
318
276
  setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
319
277
  }
320
278
 
@@ -369,33 +327,17 @@ interface StyleSheetList {
369
327
  }
370
328
 
371
329
  interface SubtleCrypto {
372
- /**
373
- * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
374
- *
375
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
376
- */
330
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
377
331
  deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
378
- /**
379
- * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
380
- *
381
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
382
- */
332
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
383
333
  generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
384
334
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
385
335
  generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
386
336
  generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
387
- /**
388
- * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
389
- *
390
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
391
- */
337
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
392
338
  importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
393
339
  importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
394
- /**
395
- * The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
396
- *
397
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
398
- */
340
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
399
341
  unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
400
342
  }
401
343
 
@@ -429,39 +371,19 @@ interface ViewTransitionTypeSet extends Set<string> {
429
371
  }
430
372
 
431
373
  interface WEBGL_draw_buffers {
432
- /**
433
- * The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
434
- *
435
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
436
- */
374
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
437
375
  drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
438
376
  }
439
377
 
440
378
  interface WEBGL_multi_draw {
441
- /**
442
- * The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
443
- *
444
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
445
- */
446
- multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
447
- /**
448
- * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
449
- *
450
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
451
- */
452
- multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
453
- /**
454
- * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
455
- *
456
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
457
- */
458
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
459
- /**
460
- * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
461
- *
462
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
463
- */
464
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
379
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
380
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
381
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
382
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
383
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
384
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
385
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
386
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
465
387
  }
466
388
 
467
389
  interface WebGL2RenderingContextBase {
@@ -476,7 +398,7 @@ interface WebGL2RenderingContextBase {
476
398
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
477
399
  getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
478
400
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
479
- getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
401
+ getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
480
402
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
481
403
  invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
482
404
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
@@ -269,7 +269,7 @@ interface String {
269
269
  }
270
270
 
271
271
  interface ArrayBuffer {
272
- readonly [Symbol.toStringTag]: "ArrayBuffer";
272
+ readonly [Symbol.toStringTag]: string;
273
273
  }
274
274
 
275
275
  interface DataView<TArrayBuffer extends ArrayBufferLike> {
@@ -29,13 +29,13 @@ interface SharedArrayBuffer {
29
29
  * Returns a section of an SharedArrayBuffer.
30
30
  */
31
31
  slice(begin?: number, end?: number): SharedArrayBuffer;
32
+ readonly [Symbol.species]: SharedArrayBuffer;
32
33
  readonly [Symbol.toStringTag]: "SharedArrayBuffer";
33
34
  }
34
35
 
35
36
  interface SharedArrayBufferConstructor {
36
37
  readonly prototype: SharedArrayBuffer;
37
38
  new (byteLength?: number): SharedArrayBuffer;
38
- readonly [Symbol.species]: SharedArrayBufferConstructor;
39
39
  }
40
40
  declare var SharedArrayBuffer: SharedArrayBufferConstructor;
41
41
 
@@ -29,27 +29,15 @@ declare namespace Intl {
29
29
  granularity?: "grapheme" | "word" | "sentence" | undefined;
30
30
  }
31
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
32
  interface Segmenter {
38
33
  /**
39
34
  * Returns `Segments` object containing the segments of the input string, using the segmenter's locale and granularity.
40
35
  *
41
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment)
42
- *
43
36
  * @param input - The text to be segmented as a `string`.
44
37
  *
45
38
  * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
46
39
  */
47
40
  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
41
  resolvedOptions(): ResolvedSegmenterOptions;
54
42
  }
55
43
 
@@ -62,20 +50,13 @@ declare namespace Intl {
62
50
  [Symbol.iterator](): SegmentIterator<T>;
63
51
  }
64
52
 
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
53
  interface Segments {
71
54
  /**
72
55
  * Returns an object describing the segment in the original string that includes the code unit at a specified index.
73
56
  *
74
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments/containing)
75
- *
76
57
  * @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
58
  */
78
- containing(codeUnitIndex?: number): SegmentData | undefined;
59
+ containing(codeUnitIndex?: number): SegmentData;
79
60
 
80
61
  /** Returns an iterator to iterate over the segments. */
81
62
  [Symbol.iterator](): SegmentIterator<SegmentData>;
@@ -95,11 +76,6 @@ declare namespace Intl {
95
76
  isWordLike?: boolean;
96
77
  }
97
78
 
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
79
  const Segmenter: {
104
80
  prototype: Segmenter;
105
81
 
@@ -1158,7 +1158,6 @@ interface JSON {
1158
1158
  * @param text A valid JSON string.
1159
1159
  * @param reviver A function that transforms the results. This function is called for each member of the object.
1160
1160
  * If a member contains nested objects, the nested objects are transformed before the parent object is.
1161
- * @throws {SyntaxError} If `text` is not valid JSON.
1162
1161
  */
1163
1162
  parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
1164
1163
  /**
@@ -1166,7 +1165,6 @@ interface JSON {
1166
1165
  * @param value A JavaScript value, usually an object or array, to be converted.
1167
1166
  * @param replacer A function that transforms the results.
1168
1167
  * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
1169
- * @throws {TypeError} If a circular reference or a BigInt value is found.
1170
1168
  */
1171
1169
  stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
1172
1170
  /**
@@ -1174,7 +1172,6 @@ interface JSON {
1174
1172
  * @param value A JavaScript value, usually an object or array, to be converted.
1175
1173
  * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
1176
1174
  * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
1177
- * @throws {TypeError} If a circular reference or a BigInt value is found.
1178
1175
  */
1179
1176
  stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
1180
1177
  }
@@ -1396,18 +1393,14 @@ interface Array<T> {
1396
1393
  /**
1397
1394
  * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1398
1395
  * @param start The zero-based location in the array from which to start removing elements.
1399
- * @param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start
1400
- * paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type
1401
- * that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.
1396
+ * @param deleteCount The number of elements to remove.
1402
1397
  * @returns An array containing the elements that were deleted.
1403
1398
  */
1404
1399
  splice(start: number, deleteCount?: number): T[];
1405
1400
  /**
1406
1401
  * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1407
1402
  * @param start The zero-based location in the array from which to start removing elements.
1408
- * @param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,
1409
- * undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and
1410
- * not remove any elements.
1403
+ * @param deleteCount The number of elements to remove.
1411
1404
  * @param items Elements to insert into the array in place of the deleted elements.
1412
1405
  * @returns An array containing the elements that were deleted.
1413
1406
  */
@@ -25,5 +25,3 @@ and limitations under the License.
25
25
  /// <reference lib="esnext.iterator" />
26
26
  /// <reference lib="esnext.promise" />
27
27
  /// <reference lib="esnext.float16" />
28
- /// <reference lib="esnext.error" />
29
- /// <reference lib="esnext.sharedmemory" />
@@ -374,8 +374,6 @@ interface Float16ArrayConstructor {
374
374
  new (length?: number): Float16Array<ArrayBuffer>;
375
375
  new (array: ArrayLike<number> | Iterable<number>): Float16Array<ArrayBuffer>;
376
376
  new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float16Array<TArrayBuffer>;
377
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float16Array<ArrayBuffer>;
378
- new (array: ArrayLike<number> | ArrayBuffer): Float16Array<ArrayBuffer>;
379
377
 
380
378
  /**
381
379
  * The size in bytes of each element in the array.