mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-15 21:12:41 +08:00
Type initialization using objects
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
/**
|
||||
* @template T
|
||||
* @typedef {import("./TypeInitialization").AnyValueConstructor<T>} AnyValueConstructor
|
||||
*/
|
||||
/** @typedef {import("./IEntity").AnyValueConstructor<*>} AnyValueConstructor */
|
||||
|
||||
export default class UnionType {
|
||||
|
||||
@@ -10,7 +7,7 @@ export default class UnionType {
|
||||
return this.#types
|
||||
}
|
||||
|
||||
/** @param {...AnyValueConstructor<any>} types */
|
||||
/** @param {...AnyValueConstructor} types */
|
||||
constructor(...types) {
|
||||
this.#types = types
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user