Add assertion decorations for various numeric types.
This commit is contained in:
@@ -1,16 +1,10 @@
|
||||
class KeystrokeWithModifiersAction extends KeyAction {
|
||||
|
||||
@assertUInt8
|
||||
modifierMask: number;
|
||||
|
||||
private _scancode: number;
|
||||
|
||||
get scancode(): number {
|
||||
return this._scancode;
|
||||
}
|
||||
|
||||
set scancode(value) {
|
||||
this._scancode = value;
|
||||
}
|
||||
@assertUInt8
|
||||
scancode: number;
|
||||
|
||||
_fromJsObject(jsObject: any): KeystrokeWithModifiersAction {
|
||||
this.assertKeyActionType(
|
||||
|
||||
Reference in New Issue
Block a user