> For the complete documentation index, see [llms.txt](https://hoilzz-til.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hoilzz-til.gitbook.io/docs/devlog/1007/index-signature-with-generic.md).

# 인덱스 시그니처의 키값을 제네릭으로 할당하기

```javascript
type MapWithDynamicKey <T extends string> = {
    [index in T]: string | string[];
}

type IParams = 'job' | 'age'

const asd: MapWithDynamicKey<IParams> = {
    'job': 'asd',
    'age': 'asd',
}
```
