mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-07 11:37:30 +08:00
Small refactoring
This commit is contained in:
@@ -14,9 +14,8 @@ export default class NaturalNumberEntity extends IntegerEntity {
|
||||
super.value = value
|
||||
}
|
||||
|
||||
/** @returns {P<NaturalNumberEntity>} */
|
||||
static createGrammar() {
|
||||
return /** @type {P<NaturalNumberEntity>} */(
|
||||
P.numberNatural.map(v => new this(v))
|
||||
)
|
||||
return P.numberNatural.map(v => new this(v))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user