typescript: support `scroller` on `MenuInstance`

pull/3647/head
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; draw: () => void;
move: (n: number) => void; move: (n: number) => void;
select: () => void; select: () => void;
scroller?: MenuScroller; // BangleJS 2
};
/**
* Menu scroller.
*/
type MenuScroller = {
scroll: number;
}; };
declare const BTN1: Pin; declare const BTN1: Pin;