Closed HerringtonDarkholme closed 7 years ago
isomorphic mapped types can enable this feature
store.getters<P>(config: {[K in keyof P]: (s: state) => P[K]})
Very hard to implement since overloading choosing is too finicky in TypeScript. 😞 Need to split two API
Shipped in 0.6.0
These method can define multiple items in kilimanjaro.
This requires mapping types, index access type and
keyof
typings. Thep
place holder is mainly for type checking. Because TypeScript cannot index accessed type for return type. Also requires index access type on type constraints.