> 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="/files/ks6D8BynXN4JcuvlmE1d" alt=""><figcaption></figcaption></figure>

### Extending Interfaces

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

<figure><img src="/files/BlbJCXhtW4hnmOikf9YZ" alt=""><figcaption></figcaption></figure>

### Interface As Function

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

<figure><img src="/files/Y5QbKlFJZ3qg46QIBR6W" alt=""><figcaption></figcaption></figure>
