Skip to content

Commit

Permalink
fix: typings fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Oct 27, 2020
1 parent a75d330 commit a8a7193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class XKeys extends EventEmitter {
/** Analogue states, such as jog-wheels, shuttle etc */
private _analogStates: AnalogStates = {}

constructor (devicePath: HID.HID | string) {
constructor (devicePath?: HID.HID | string) {
super()
const devices = HID.devices()

Expand Down Expand Up @@ -294,7 +294,7 @@ export class XKeys extends EventEmitter {
* @param {flashing} boolean: flashing or not (if on)
* @returns undefined
*/
setBacklight (keyIndex: number | string, on: boolean, redLight: boolean, flashing?: boolean): void {
setBacklight (keyIndex: number | string, on: boolean, redLight?: boolean, flashing?: boolean): void {
if (keyIndex === 'PS') return // PS-button has no backlight

this.verifyKeyIndex(keyIndex)
Expand Down

0 comments on commit a8a7193

Please sign in to comment.