diff --git a/typescript/types/main.d.ts b/typescript/types/main.d.ts index e00577afb..efbbea2f3 100644 --- a/typescript/types/main.d.ts +++ b/typescript/types/main.d.ts @@ -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; -} \ No newline at end of file +}