Open vnues opened 2 years ago
function useFromObject<T>(store: any, namespace: string | null, props: TMap<KnownKeys<T>>[], cb: Function) { const obj= Object.create(null); for (let key in props) { if (props.hasOwnProperty(key)) { obj[key] = runCB(cb, store, namespace, props[key]); } } return obj; }
we probably don't have. would you like to add them?
The parameter is an array, useFromObject should not be needed