changing how assertions access instance variables to make them non-static-like (#37)

Changing how assertions access instance variables
This commit is contained in:
Sam Rang
2016-05-09 12:17:54 -05:00
committed by József Farkas
parent 864941e5ae
commit 6e218387fc
26 changed files with 112 additions and 77 deletions

View File

@@ -1,6 +1,7 @@
import {Serializable} from '../Serializable';
import {KeyActions} from './KeyActions';
import {UhkBuffer} from '../UhkBuffer';
import {assertUInt8, assertEnum} from '../assert';
enum PointerRole {
none,
@@ -10,12 +11,12 @@ enum PointerRole {
export class Module extends Serializable<Module> {
// @assertUInt8
@assertUInt8
id: number;
keyActions: KeyActions;
// @assertEnum(PointerRole)
@assertEnum(PointerRole)
private pointerRole: PointerRole;
_fromJsObject(jsObject: any): Module {