> 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/utility/ts-record.md).

# TS - Record

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FYF3jOzYCmFjaCluknwLd%2FTypescript%20Record%20Syntax.png?alt=media&amp;token=a67dcdc9-f3c9-48ad-b010-4752486e6d97" alt=""><figcaption></figcaption></figure>

TypeScript မှာ Record ဟာ Object Type တွေကို ဖန်တီးဖို့ အသုံးများတဲ့ Utility Type တစ်ခုပဲ ဖြစ်ပါတယ် ။

key-value တွေကို Object ပြုလုပ်တဲ့အခါ Index Signature ကို အသုံးပြုခဲ့တာ လေ့လာခဲ့ပြီးဖြစ်ပါတယ် ။

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FvPbNCgcE3NJX5uUUexqE%2FTypescript%20Record%20Explanation.png?alt=media&amp;token=de08030d-2f86-41a5-a966-181e0748927b" alt=""><figcaption></figcaption></figure>

key typeကို string နဲ့ value type ကို string ဖြစ် object တစ်ခုကို တည်ဆောက်ချင်ရင်&#x20;

Record\<string, string> ရေးသားနည်းသုံးပြီး ရှင်းလင်းစွာ တည်ဆောက်နိုင်ပါတယ် ။

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FT66ahAUvggZar47ZtbzF%2FTypescript%20Record%20Union%20Explanation.png?alt=media&amp;token=58f9298b-414c-4f81-a1f5-69135413f289" alt=""><figcaption></figcaption></figure>

Record မှာလည်း အခုလို string union ကို အသုံးပြုပြီး ရေးသားနိုင်ပါတယ် ။
