1
0
Fork 0

typescript: support `scroller` on `MenuInstance`

master
Rob Pilling 2024-11-06 07:40:02 +00:00
parent 81820f8ec1
commit 0cb0b0e467
1 changed files with 9 additions and 1 deletions

View File

@ -69,6 +69,14 @@ type MenuInstance = {
draw: () => void;
move: (n: number) => void;
select: () => void;
scroller?: MenuScroller; // BangleJS 2
};
/**
* Menu scroller.
*/
type MenuScroller = {
scroll: number;
};
declare const BTN1: Pin;
@ -14828,4 +14836,4 @@ declare module "Storage" {
* @url http://www.espruino.com/Reference#l_Storage_open
*/
function open(name: string, mode: "r" | "w" | "a"): StorageFile;
}
}