This is my normal dummy data by '.js'
There is an array and export it.
const students = [
{
id: 1,
name: 'Sean Grey',
age: 24
},
{
id: 2,
name: 'Sllllean Grey',
age: 224
},
{
id: 3,
name: 'Seansdajfklajs Grey',
age: 2114
}
];
export default students;
I want to export this dummy data checking typescript.
So I'm thinking use 'class' or 'interface'.
But I don't know the guide for this example.
Could you recommend some advice for me?