---
title: "Discussion on \"How To Let a TypeScript Function Accept an Index Type as Parameter\" | Hashnode"
description: "Discussion on \"How To Let a TypeScript Function Accept an Index Type as Parameter\". A perfect solution for the KeyOf type in TypeScript"
url: "https://hashnode.com/posts/how-to-let-a-typescript-function-accept-an-index-type-as-parameter-3cb538ac4175/611ff109e404793819ca7ff3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Let a TypeScript Function Accept an Index Type as Parameter](https://hasnode.byrayray.dev/how-to-let-a-typescript-function-accept-an-index-type-as-parameter-3cb538ac4175?utm_source=hashnode&utm_medium=feed)

A perfect solution for the KeyOf type in TypeScript

Aug 3, 2021 · 2 min read · hasnode.byrayray.dev  
Updated Aug 17, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#developer](https://hashnode.com/tag/developer)

## Written by

[Dev By RayRay](https://hashnode.com/@devbyrayray)

@devbyrayray · Netherlands

  
[View profile](https://hashnode.com/@devbyrayray)

Tech Lead / Lead Developer in the 🇳🇱 https://byrayray.dev/

🚀 Tech Lead / Lead Developer 🔥 Writing about CSS, JavaScript, Typescript, Angular, Vue.js, Nuxt.js, Serverless functions, and a lot more web-related topics. https://byrayray.dev/

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
