Skip to content

Commit

Permalink
Merge pull request #2582 from bobrippling/typescript/menuoptions
Browse files Browse the repository at this point in the history
typescript: add `remove` to `MenuOptions`
  • Loading branch information
gfwilliams authored Dec 3, 2024
2 parents 77110ad + 6d6a828 commit 10cd0eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/pixljs/jswrap_pixljs.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ type MenuNumberItem = {
type MenuOptions = {
title?: string;
back?: () => void;
remove?: () => void;
selected?: number;
fontHeight?: number;
scroll?: number;
Expand Down Expand Up @@ -733,4 +734,4 @@ To remove the window, call `E.showAlert()` with no arguments.
}*/
void jswrap_pixljs_powerusage(JsVar *devices) {
jsvObjectSetChildAndUnLock(devices, "LCD", jsvNewFromInteger(lcdIsOn ? 170 : 20));
}
}

0 comments on commit 10cd0eb

Please sign in to comment.