How to Type an Array of Objects in TypeScript | CodeTrail