8000 Fix constructor in dummy launchpad · duncte123/launchpad.js@70ee95a · GitHub
[go: up one dir, main page]

Skip to content

Commit 70ee95a

Browse files
committed
Fix constructor in dummy launchpad
1 parent 028b794 commit 70ee95a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchpad.js",
3-
"version": "3.4.4",
3+
"version": "3.4.5",
44
"description": "A javascript api to control your Novation launchpads",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/launchpads/dummy/DummyLaunchpad.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import { CONTROL_NOTE, NORMAL_NOTE } from '../../internal/utils.js';
2-
import { BaseLaunchpad } from '../base/BaseLaunchpad';
2+
import { BaseLaunchpad, BaseLaunchpadOptions } from '../base/BaseLaunchpad';
33
import { Button, ButtonIn, ButtonStyle, isButton, PaletteColor, RgbColor } from '../base/ILaunchpad';
44

55
/**
66
* A dummy launchpad that has the size of a mk2
77
*/
88
export class DummyLaunchpad extends BaseLaunchpad {
9+
constructor(options?: Partial<BaseLaunchpadOptions>) {
10+
super(options);
11+
}
12+
913
allOff(): void {
1014
this.logCall('allOff');
1115
}

0 commit comments

Comments
 (0)
0