SHARE
TWEET

Untitled

a guest Jun 19th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class MyClass {
  2.    prop1: CustomType1;
  3.    prop2: CustomType2;
  4.    [key: string]: any // <--- indexer
  5. }
  6.      
  7. class MyClass {
  8.    prop1: CustomType1;
  9.    prop2: CustomType2;
  10.    [key: MYCLASS PROP NAMES]: MYCLASS PROP TYPES // <--- pseudo-code
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top