Fix Actions

This commit is contained in:
Sam El-Husseini
2018-05-14 11:05:47 -07:00
parent faac0127e3
commit 66b320d633
4 changed files with 50 additions and 33 deletions

View File

@ -301,7 +301,7 @@ namespace music {
*/
//% blockId=melody_on_event block="music on %value"
//% help=music/on-event weight=59
export function onEvent(value: MusicEvent, handler: Action) {
export function onEvent(value: MusicEvent, handler: () => void) {
control.onEvent(MICROBIT_MELODY_ID, value, handler);
}