P E N C I L
Login
Enum & Record define

enum MyEnum { a, b }

type Obj : {[T in MyEnum]: ?number}

type Obj: {[key:string]:number}