This commit is contained in:
barsdeveloper
2024-12-16 00:44:10 +02:00
parent e405a7245d
commit c0032fed76
8 changed files with 373 additions and 263 deletions

View File

@@ -29,27 +29,27 @@ export default class ObjectReferenceEntity extends IEntity {
this.#path = value
}
#full
#serializer
get full() {
return this.#full
return this.#serializer
}
set full(value) {
this.#full = value
this.#serializer = value
}
#name = ""
/** @param {(t: String, p: String) => String} full */
/** @param {(t: String, p: String) => String} serializer */
constructor(
type = "None",
path = "",
full = type.includes("/") || path
serializer = type.includes("/") || path
? (t, p) => `"${t + (p ? (`'${p}'`) : "")}"`
: (t, p) => t) {
super()
this.#type = type
this.#path = path
this.#full = full
this.#serializer = serializer
}
/** @returns {P<ObjectReferenceEntity>} */