First, in a Player.ts file, create and export an interface called Player that has the following
properties:
name (string)
Next, in a Team.ts file, create and export a class called Team with the following members:
Properties:
teamName (a string)
Methods:
constructor: use a parameter to set the teamName
.addPlayer method, which takes a Player object as a parameter and adds it to the list
.setActive, which takes an index of a player, and a boolean for active or inactive, and stores the boolean in that player's active member.
status is set to true
Manually test your code by exercising each method in index.ts. Create one or more Team instances, add players, and call the various methods.