Merge pull request #2333 from bobrippling/widget-type

Update Widget type
This commit is contained in:
Gordon Williams 2023-02-27 09:08:22 +00:00 committed by GitHub
commit d4e5498885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 };
*/