Files
ueblueprint/js/entity/UnionType.js
2023-01-02 00:22:50 +01:00

19 lines
351 B
JavaScript

/** @typedef {import("./IEntity").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]
}
}