(target, values, types)
| 42 | * It %%types%% is specified, the values are checked. |
| 43 | */ |
| 44 | export function defineProperties(target, values, types) { |
| 45 | for (let key in values) { |
| 46 | let value = values[key]; |
| 47 | const type = (types ? types[key] : null); |
| 48 | if (type) { |
| 49 | checkType(value, type, key); |
| 50 | } |
| 51 | Object.defineProperty(target, key, { enumerable: true, value, writable: false }); |
| 52 | } |
| 53 | } |
| 54 | //# sourceMappingURL=properties.js.map |
no test coverage detected