mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-06 23:57:30 +08:00
Small refactoring
This commit is contained in:
@@ -28,10 +28,9 @@ export default class GuidEntity extends IEntity {
|
||||
this.value = value
|
||||
}
|
||||
|
||||
/** @returns {P<GuidEntity>} */
|
||||
static createGrammar() {
|
||||
return /** @type {P<GuidEntity>} */(
|
||||
P.reg(/[0-9A-F]{32}/i).map(v => new this(v)).label("GuidEntity")
|
||||
)
|
||||
return P.reg(/[0-9A-F]{32}/i).map(v => new this(v)).label("GuidEntity")
|
||||
}
|
||||
|
||||
serialize(
|
||||
|
||||
Reference in New Issue
Block a user