mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Merge pull request #2333 from bobrippling/widget-type
Update Widget type
This commit is contained in:
commit
d4e5498885
@ -87,7 +87,10 @@ type WidgetArea = "tl" | "tr" | "bl" | "br";
|
||||
type Widget = {
|
||||
area: WidgetArea;
|
||||
width: number;
|
||||
draw: (this: { x: number; y: number }) => void;
|
||||
sortorder?: number;
|
||||
draw: (this: Widget, w: Widget) => void;
|
||||
x?: number;
|
||||
y?: number;
|
||||
};
|
||||
declare const WIDGETS: { [key: string]: Widget };
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user