Back to Type Challenges

README.Ko

questions/01367-medium-remove-index-signature/README.ko.md

latest1.5 KB
Original Source
<!--info-header-start--><h1>Remove Index Signature </h1><blockquote><p>by hiroya iizuka <a href="https://github.com/hiroyaiizuka" target="_blank">@hiroyaiizuka</a></p></blockquote><p><a href="https://tsch.js.org/1367/play/ko" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.md" target="_blank"></a> </p><!--info-header-end-->

객체 유형에서 인덱스 시그니처를 제외하는 RemoveIndexSignature<T>를 구현하세요

예시:

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

type A = RemoveIndexSignature<Foo> // expected { foo(): void }
<!--info-footer-start-->

<a href="../../README.ko.md" target="_blank"></a> <a href="https://tsch.js.org/1367/answer/ko" target="_blank"></a> <a href="https://tsch.js.org/1367/solutions" target="_blank"></a> <!--info-footer-end-->