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
@@ -1,14 +1,7 @@
class PlayMacroAction extends KeyAction {
private _macroId: number;
get macroId(): number {
return this._macroId;
}
set macroId(value) {
this._macroId = value;
}
@assertUInt8
macroId: number;
_fromJsObject(jsObject: any): PlayMacroAction {
this.assertKeyActionType(jsObject, KeyActionType.PlayMacroAction, 'PlayMacroAction');