diff --git a/questions/01367-medium-remove-index-signature/test-cases.ts b/questions/01367-medium-remove-index-signature/test-cases.ts index 98308166..1fa3128e 100644 --- a/questions/01367-medium-remove-index-signature/test-cases.ts +++ b/questions/01367-medium-remove-index-signature/test-cases.ts @@ -8,11 +8,13 @@ type Foo = { type Bar = { [key: number]: any bar(): void + 0: string } +const foobar = Symbol('foobar') type FooBar = { [key: symbol]: any - foobar(): void + [foobar](): void } type Baz = { @@ -22,7 +24,7 @@ type Baz = { type cases = [ Expect, { foo(): void }>>, - Expect, { bar(): void }>>, - Expect, { foobar(): void }>>, + Expect, { bar(): void; 0: string }>>, + Expect, { [foobar](): void }>>, Expect, { bar(): void; baz: string }>>, ]