---
title: "Discussion on \"TypeScript: Only Allow A Property From Interface as Parameter\" | Hashnode"
description: "Discussion on \"TypeScript: Only Allow A Property From Interface as Parameter\". So lately I was working with a team member on an Angular Pipe. We had an Address Interface and wanted to only allow an argument that was property from the Adress Interface. But how do you define that?\nIt turns out very simple, we need to use the keyo..."
url: "https://hashnode.com/posts/typescript-only-allow-a-property-from-interface-as-parameter/625fccaa6122393b685b8f2a"
---

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

Discussion

# [TypeScript: Only Allow A Property From Interface as Parameter](https://hasnode.byrayray.dev/typescript-only-allow-a-property-from-interface-as-parameter?utm_source=hashnode&utm_medium=feed)

So lately I was working with a team member on an Angular Pipe. We had an Address Interface and wanted to only allow an argument that was property from the Adress Interface. But how do you define that? It turns out very simple, we need to use the keyo...

Apr 20, 2022 · 2 min read · hasnode.byrayray.dev  
Updated Nov 9, 2022  
Read the article

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

## 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.
