Decoding code fixes

This commit is contained in:
barsdeveloper
2024-07-16 21:36:13 +02:00
parent 98ebdd78b2
commit e0d8990e6a
18 changed files with 722 additions and 683 deletions

View File

@@ -79,7 +79,7 @@ export default class PinEntity extends IEntity {
ParentPin: PinReferenceEntity,
DefaultValue:
ComputedTypeEntity.from(
// @ts-expect-error
/** @param {PinEntity} pinEntity */
pinEntity => pinEntity.getEntityType(true) ?? StringEntity
).flagSerialized(),
AutogeneratedDefaultValue: StringEntity,
@@ -197,6 +197,7 @@ export default class PinEntity extends IEntity {
return category
}
/** @returns {typeof IEntity} */
getEntityType(alternative = false) {
const typeString = this.getType()
const entity = PinEntity.#typeEntityMap[typeString]