Remove TypeChecker.
This commit is contained in:
@@ -7,9 +7,6 @@ class KeystrokeAction extends KeyAction {
|
||||
}
|
||||
|
||||
set scancode(value) {
|
||||
if (!TypeChecker.isScancodeValid(value)) {
|
||||
throw `Invalid KeystrokeAction.scancode: ${value}`;
|
||||
}
|
||||
this._scancode = value;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,6 @@ class KeystrokeWithModifiersAction extends KeyAction {
|
||||
}
|
||||
|
||||
set scancode(value) {
|
||||
if (!TypeChecker.isScancodeValid(value)) {
|
||||
throw `Invalid KeystrokeWithModifiersAction.scancode: ${value}`;
|
||||
}
|
||||
this._scancode = value;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ class PlayMacroAction extends KeyAction {
|
||||
}
|
||||
|
||||
set macroId(value) {
|
||||
if (!TypeChecker.isUInt8Valid(value)) {
|
||||
throw `Invalid PlayMacroAction.macroId: ${value}`;
|
||||
}
|
||||
this._macroId = value;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ class SwitchKeymapAction extends KeyAction {
|
||||
}
|
||||
|
||||
set keymapId(value) {
|
||||
if (!TypeChecker.isUInt8Valid(value)) {
|
||||
throw `Invalid SwitchKeymapAction.keymapId: ${value}`;
|
||||
}
|
||||
this._keymapId = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user