Guest User

Untitled

a guest
Feb 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import { Hero } from './hero';
  2.  
  3. export const HEROES: Hero[] = [
  4. {id: 11, name: 'Mr. Nice'},
  5. {id: 12, name: 'Narco'},
  6. ];
  7.  
  8. export class Hero {
  9. id: number;
  10. name: string;
  11. }
  12.  
  13. export class Hero {
  14. id: number;
  15. name?: string;
  16. }
  17.  
  18. import { Hero } from './hero';
  19.  
  20. export const HEROES: Hero[] = [
  21. {id: 11, name: 'Mr. Nice'},
  22. {id: 12},
  23. ];
Add Comment
Please, Sign In to add comment