> For the complete documentation index, see [llms.txt](https://lwin-moe-paing.gitbook.io/typescript-baby-by-lwin-moe-paing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lwin-moe-paing.gitbook.io/typescript-baby-by-lwin-moe-paing/basic-typescript/ts-interface.md).

# TS - Interface

### Interface keyword

TypeScript Interface ကို interface keyword ကိုသုံးပြီး object type ကို ပြုလုပ်နိုင်ပါတယ် ။

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FTZ4ZRdMbAi2OcRY9Q8xV%2FTypescript%20Interface%20Syntax.png?alt=media&amp;token=284ca72d-d544-40da-a4d9-e4466144d8c7" alt=""><figcaption></figcaption></figure>

### Extending Interfaces

Extending Interfaces ဆိုတာ Interface တစ်ခုကနေ အသစ်တိုးချဲ့ပြီး အသုံးပြုနိုင်တဲ့ နည်းလမ်း ဖြစ်ပါတယ် ။ လေ့လာခဲ့တဲ့ Intersection နဲ့ နည်းနည်းဆင်ပါတယ် Interface နှစ်ခုပေါင်းစပ်လိုက်တဲ့ ပုံစံမျိုးပါ ။

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FEZqd1ltVXmgxA31WgpjP%2FTypescript%20Interface%20Extending.png?alt=media&amp;token=e08ae32c-a2fd-49dc-ae03-0b6d3e712c59" alt=""><figcaption></figcaption></figure>

### Interface As Function

interface keyword နဲ့  Function Type တစ်ခုအနေနဲ့ အခုလိုရေးသားအသုံးပြုနိုင်ပါတယ် ။

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FP3kBJhQdEvPPZ4WYfUUu%2FTypescript%20Interface%20As%20Function.png?alt=media&amp;token=22ce2c10-4958-4fef-aa0c-ffe40ed086ce" alt=""><figcaption></figcaption></figure>
