Guest User

Untitled

a guest
Apr 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. `export class AppComponent {
  2. title = 'app works!';
  3. t: Test = {
  4. name: ''
  5. }
  6. t: SquareConfig = {
  7. color: 'white',
  8. width: 10,
  9. d: ''
  10. }
  11. }
  12.  
  13. interface Test {
  14. name: string;
  15. phone?: number;
  16. }
  17.  
  18. interface SquareConfig {
  19. color: string;
  20. width: number;
  21. [propName: string]: any;
  22. }`
Add Comment
Please, Sign In to add comment