Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.21 KB

File metadata and controls

19 lines (11 loc) · 1.21 KB

Remove Index Signature medium

by hiroya iizuka @hiroyaiizuka

Take the Challenge

Implement RemoveIndexSignature<T> , exclude the index signature from object types.

For example:


type Foo = {
  [key: string]: any;
  foo(): void;
}

type A = RemoveIndexSignature<Foo>  // expected { foo(): void }


Back Share your Solutions Check out Solutions