interface Person { name: string; email?: string } array.map(val => <Person> { name: val.key1, email: val.key2 });
No comments:
Post a Comment