From d14f44bd385ca0e70beb3bf5c98286244cd39598 Mon Sep 17 00:00:00 2001 From: pq <44841842+qianphong@users.noreply.github.com> Date: Mon, 4 Jul 2022 19:49:52 +0800 Subject: [PATCH] enhance: improve test case in 01367-medium-remove-index-signature (#12651) --- .../01367-medium-remove-index-signature/test-cases.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 }>>, ]