Advertisement
abbasmhd

Untitled

Apr 3rd, 2017
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. declare interface IType {
  2.   [attribute: string]: boolean;
  3. }
  4.  
  5. class SomeClass {
  6.     public attributes: IType = {};
  7. }
  8.  
  9. let an_object = new SomeClass();
  10. an_object.attributes.aaa = null;
  11. an_object.attributes['aaa'] = null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement