diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-14 11:58:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-14 11:58:47 +0100 |
commit | af2d992ecd2b9320072164b6ee295c31a3194406 (patch) | |
tree | 0926e2852aa2c4eb300e1f54f4c84d7568589b3b /cli/tsc/dts/lib.es2022.intl.d.ts | |
parent | 2c0bf6fd65b3276c4818c73028b19819608c8e70 (diff) |
feat: TypeScript 5.6 and `npm:@types/node@22` (#25614)
Diffstat (limited to 'cli/tsc/dts/lib.es2022.intl.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.es2022.intl.d.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/tsc/dts/lib.es2022.intl.d.ts b/cli/tsc/dts/lib.es2022.intl.d.ts index 6a2ba0787..cd8eb1140 100644 --- a/cli/tsc/dts/lib.es2022.intl.d.ts +++ b/cli/tsc/dts/lib.es2022.intl.d.ts @@ -46,6 +46,10 @@ declare namespace Intl { granularity: "grapheme" | "word" | "sentence"; } + interface SegmentIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> { + [Symbol.iterator](): SegmentIterator<T>; + } + interface Segments { /** * Returns an object describing the segment in the original string that includes the code unit at a specified index. @@ -55,7 +59,7 @@ declare namespace Intl { containing(codeUnitIndex?: number): SegmentData; /** Returns an iterator to iterate over the segments. */ - [Symbol.iterator](): IterableIterator<SegmentData>; + [Symbol.iterator](): SegmentIterator<SegmentData>; } interface SegmentData { |