Enable tsconfig noUncheckedIndexedAccess

This commit is contained in:
Jamie
2026-03-12 16:24:01 -07:00
committed by GitHub
parent 34b0f9cd50
commit 1d45a52da7
311 changed files with 2146 additions and 1589 deletions

View File

@@ -334,8 +334,8 @@ describe('iterable utilities', () => {
it('returns a map of groups', () => {
assert.deepEqual(
groupBy(
['apple', 'aardvark', 'orange', 'orange', 'zebra'],
str => str[0]
['apple', 'aardvark', 'orange', 'orange', 'zebra'] as const,
str => str[0] ?? ''
),
{
a: ['apple', 'aardvark'],