This commit is contained in:
Snowflake107 2021-05-13 14:00:58 +05:45
parent f4f9136956
commit 9e2203ca8c

View file

@ -206,10 +206,11 @@ export class Util {
} }
/** /**
* * Defines a property in the given object
* @param target * @param {any} target The target
* @param prop * @param {any} prop The property to define
* @param value * @param {any} value The value
* @returns {void}
*/ */
static define(ops: { target: any; prop: any; value: any; enumerate?: boolean }) { static define(ops: { target: any; prop: any; value: any; enumerate?: boolean }) {
Object.defineProperty(ops.target, ops.prop, { Object.defineProperty(ops.target, ops.prop, {