Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass {
- prop1: CustomType1;
- prop2: CustomType2;
- [key: string]: any // <--- indexer
- }
- class MyClass {
- prop1: CustomType1;
- prop2: CustomType2;
- [key: MYCLASS PROP NAMES]: MYCLASS PROP TYPES // <--- pseudo-code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement