Check out example codes for "create model in typescript". It will help you in understanding the concepts better.

Code Example 1

type DonutChartModel = {
    dimension: number;
    innerRadius: number;
};
var donut: DonutChartModel = {
    dimension: 1,
    innerRadius: 2
};

Learn ReactJs, React Native from akashmittal.com