This commit is contained in:
barsdeveloper
2024-05-31 15:09:48 +02:00
parent 1c2778fbf8
commit ecc71b76d1
45 changed files with 1191 additions and 1078 deletions

View File

@@ -6,7 +6,7 @@ export default class MirroredEntity extends IEntity {
/** @type {typeof IEntity} */
static type
/** @param {() => T} getter */
/** @param {() => InstanceType<T>} getter */
constructor(getter = null) {
super()
this.getter = getter
@@ -32,7 +32,11 @@ export default class MirroredEntity extends IEntity {
return result
}
toString() {
return this.getter().toString()
toString(
insideString = false,
indentation = "",
printKey = this.Self().printKey,
) {
return this.getter().toString(insideString, indentation, printKey)
}
}