(target: any, source: any)
| 5 | * @param {object} source Object with properties to be copied to x |
| 6 | */ |
| 7 | export function addPropertiesToObject(target: any, source: any) { |
| 8 | for (let k of Object.keys(source || {})) { |
| 9 | Object.defineProperty(target, k, { |
| 10 | get: () => source[k] |
| 11 | }) |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Returns a namespaced name of the module to be used as a store getter |
no outgoing calls
no test coverage detected