MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / defineProperties

Function defineProperties

lib.esm/utils/properties.js:44–53  ·  view source on GitHub ↗
(target, values, types)

Source from the content-addressed store, hash-verified

42 * It %%types%% is specified, the values are checked.
43 */
44export 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

Callers 15

constructorMethod · 0.90
makeErrorFunction · 0.90
throwThrottleErrorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls 1

checkTypeFunction · 0.70

Tested by

no test coverage detected