mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-18 20:34:54 +08:00
Better typing for grammars
This commit is contained in:
@@ -3,7 +3,9 @@ import IntegerEntity from "./IntegerEntity.js"
|
||||
|
||||
export default class ByteEntity extends IntegerEntity {
|
||||
|
||||
static grammar = P.numberByte.map(v => new this(v))
|
||||
static grammar = /** @type {P<ByteEntity>} */(
|
||||
P.numberByte.map(v => new this(v))
|
||||
)
|
||||
|
||||
get value() {
|
||||
return super.value
|
||||
|
||||
Reference in New Issue
Block a user