Files
ueblueprint/js/entity/IndexedArray.js
2023-04-04 22:52:42 +02:00

18 lines
337 B
JavaScript

/** @typedef {import("./IEntity").AnyValueConstructor<*>} AnyValueConstructor */
export default class IndexedArray {
#type
get type() {
return this.#type
}
value = []
/** @param {AnyValueConstructor} type */
constructor(type, value = []) {
this.#type = type
this.value = value
}
}