TS - Interface
Last updated
Last updated
TypeScript Interface ကို interface keyword ကိုသုံးပြီး object type ကို ပြုလုပ်နိုင်ပါတယ် ။
Extending Interfaces ဆိုတာ Interface တစ်ခုကနေ အသစ်တိုးချဲ့ပြီး အသုံးပြုနိုင်တဲ့ နည်းလမ်း ဖြစ်ပါတယ် ။ လေ့လာခဲ့တဲ့ Intersection နဲ့ နည်းနည်းဆင်ပါတယ် Interface နှစ်ခုပေါင်းစပ်လိုက်တဲ့ ပုံစံမျိုးပါ ။
interface keyword နဲ့ Function Type တစ်ခုအနေနဲ့ အခုလိုရေးသားအသုံးပြုနိုင်ပါတယ် ။