Add assertion decorations for various numeric types.

This commit is contained in:
László Monda
2016-04-08 22:26:00 +02:00
parent 49d0ad270b
commit f6eb819cfe
9 changed files with 48 additions and 87 deletions

View File

@@ -1,14 +1,7 @@
class SwitchKeymapAction extends KeyAction {
private _keymapId: number;
get keymapId(): number {
return this._keymapId;
}
set keymapId(value) {
this._keymapId = value;
}
@assertUInt8
keymapId: number;
_fromJsObject(jsObject: any): SwitchKeymapAction {
this.assertKeyActionType(jsObject, KeyActionType.SwitchKeymapAction, 'SwitchKeymapAction');