You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intl.Segments.prototype.containing should include undefined in return value #61235
The interface Intl.Segments lacks an undefined in the return type for containing:
interfaceSegments{// Should be SegmentData | undefinedcontaining(codeUnitIndex?: number): SegmentData;}
Sample Code
constsegmenter=newIntl.Segmenter();constsegments=segmenter.segment("Hello world");// @ts-expect-error This should report an errorconsts: Intl.SegmentData=segments.containing(40);// This should be fineconsts: Intl.SegmentData|undefined=segments.containing(40);
Activity