Check out example codes for "add items to object array typescript". It will help you in understanding the concepts better.

Code Example 1

export class Pixel {
    public x: number;
    public y: number;   
    constructor(x: number, y: number) {
        this.x = x;
        this.y = y;
    }
}

Learn ReactJs, React Native from akashmittal.com