Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare interface IType {
- [attribute: string]: boolean;
- }
- class SomeClass {
- public attributes: IType;
- }
- let an_object = new SomeClass();
- an_object.attributes.aaa = null;
- an_object.attributes['aaa'] = null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement