Files

14 lines
303 B
TypeScript

// #docregion
export interface Hero {
id: number;
name: string;
emotion?: string;
}
export const heroes: Hero[] = [
{ id: 1, name: 'Dr. Nice', emotion: 'happy'},
{ id: 2, name: 'RubberMan', emotion: 'sad' },
{ id: 3, name: 'Windstorm', emotion: 'confused' },
{ id: 4, name: 'Magneta'}
];