mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-16 10:54:42 +08:00
Better typing for grammars
This commit is contained in:
@@ -11,8 +11,9 @@ export default class VectorEntity extends IEntity {
|
||||
Y: NumberEntity.withDefault(),
|
||||
Z: NumberEntity.withDefault(),
|
||||
}
|
||||
/** @type {P<VectorEntity>} */
|
||||
static grammar = Grammar.createEntityGrammar(this, Grammar.commaSeparation, true).label("VectorEntity")
|
||||
static grammar = /** @type {P<VectorEntity>} */(
|
||||
Grammar.createEntityGrammar(this, Grammar.commaSeparation, true).label("VectorEntity")
|
||||
)
|
||||
|
||||
constructor(values) {
|
||||
super(values)
|
||||
|
||||
Reference in New Issue
Block a user