Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2017
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  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