Files
ueblueprint/js/entity/UnionType.js
2023-04-15 15:29:21 +02:00

19 lines
354 B
JavaScript

/** @typedef {import("./IEntity.js").AnyValueConstructor<*>} AnyValueConstructor */
export default class UnionType {
#types
get types() {
return this.#types
}
/** @param {...AnyValueConstructor} types */
constructor(...types) {
this.#types = types
}
getFirstType() {
return this.#types[0]
}
}