Typescript Interface For Array Javascript Push And Pop