I need to convert the following code into TypeScript. It is an array with objects. and then I want to use it inside a class. I tried to use an interface but I could not proceed much. Please help me.
var accountModel = {
name: 'ABC Account',
accounts: [
{ balance: 10000, description: 'Checking' },
{ balance: 50000, description: 'Savings' }
]
};
Your help is very much appreciated.