mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 01:24:41 +08:00
Mergin better performance branch
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @typedef {import("../entity/IEntity").default} IEntity
|
||||
* @typedef {(new (object?: Object) => IEntity) | StringConstructor | NumberConstructor | BooleanConstructor} Constructor
|
||||
* @typedef {Constructor|Constructor[]} AcceptedType
|
||||
*/
|
||||
|
||||
export default class SerializedType {
|
||||
|
||||
/** @type {(Constructor|Array<Constructor>)[]} */
|
||||
#types
|
||||
get types() {
|
||||
return this.#types
|
||||
@@ -17,9 +8,6 @@ export default class SerializedType {
|
||||
this.#types = v
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {...AcceptedType} acceptedTypes
|
||||
*/
|
||||
constructor(...acceptedTypes) {
|
||||
this.#types = acceptedTypes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user