davidyell / Learning-React-MTG-Frontend

Magic the Gathering deck building front-end api written in Typescript with React
0 stars 0 forks source link

Improve types #14

Open davidyell opened 1 year ago

davidyell commented 1 year ago

Improve the types of the card properties, especially for those with a fixed list, such as the colour and rarity.

The colour can be normalised into an array from the comma list when the data first arrives to make it easier to work with.