Small refactoring

This commit is contained in:
barsdeveloper
2024-09-08 22:28:42 +02:00
parent 2114abef5c
commit 19ef3bd10e
43 changed files with 542 additions and 504 deletions

View File

@@ -15,10 +15,9 @@ export default class ByteEntity extends IntegerEntity {
}
}
/** @returns {P<ByteEntity>} */
createGrammar() {
return /** @type {P<ByteEntity>} */(
// @ts-expect-error
P.numberByte.map(v => new this(v))
)
// @ts-expect-error
return P.numberByte.map(v => new this(v))
}
}