Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.27 KB

File metadata and controls

19 lines (11 loc) · 1.27 KB

Remove Index Signature medium #object-keys

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