인덱스 시그니처의 key의 특정 스트링만 정하기
interface IFilter {
selected: boolean;
}
type IFilterNames = 'country' | 'price'
interface IFetchFilterResponse {
// An index signature parameter type cannot be a union type. Consider using a mapped object type instead.
}mapped object type?
Last updated
Was this helpful?