Type initialization using objects

This commit is contained in:
barsdeveloper
2023-01-02 00:22:50 +01:00
parent d391480f2c
commit 984bf32b51
43 changed files with 1511 additions and 831 deletions

View File

@@ -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
}