Skip to content

Commit

Permalink
typescript: support scroller on MenuInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrippling committed Nov 6, 2024
1 parent 81820f8 commit 0cb0b0e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion typescript/types/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 0cb0b0e

Please sign in to comment.