mirror of https://github.com/espruino/BangleApps
layout.d.ts: update optionals
parent
79ebde3e69
commit
f92ffd5d88
|
@ -36,13 +36,13 @@ declare module Layout_ {
|
||||||
hier: T,
|
hier: T,
|
||||||
options?: {
|
options?: {
|
||||||
lazy: boolean,
|
lazy: boolean,
|
||||||
btns: {
|
btns?: {
|
||||||
label: string,
|
label: string,
|
||||||
cb: () => void,
|
cb: () => void,
|
||||||
cbl: () => void,
|
cbl: () => void,
|
||||||
}[],
|
}[],
|
||||||
back: () => void,
|
back?: () => void,
|
||||||
remove: () => void,
|
remove?: () => void,
|
||||||
},
|
},
|
||||||
): Layouter<T>;
|
): Layouter<T>;
|
||||||
};
|
};
|
||||||
|
@ -71,11 +71,11 @@ declare module Layout_ {
|
||||||
id?: string,
|
id?: string,
|
||||||
font?: FontNameWithScaleFactor,
|
font?: FontNameWithScaleFactor,
|
||||||
scale?: number,
|
scale?: number,
|
||||||
col: ColorResolvable,
|
col?: ColorResolvable,
|
||||||
bgCol: ColorResolvable,
|
bgCol?: ColorResolvable,
|
||||||
pad: number,
|
pad?: number,
|
||||||
fillx: Fill,
|
fillx?: Fill,
|
||||||
filly: Fill,
|
filly?: Fill,
|
||||||
width?: number,
|
width?: number,
|
||||||
height?: number,
|
height?: number,
|
||||||
} & (
|
} & (
|
||||||
|
@ -92,17 +92,17 @@ declare module Layout_ {
|
||||||
{
|
{
|
||||||
type: "v",
|
type: "v",
|
||||||
c: Hierarchy[],
|
c: Hierarchy[],
|
||||||
halign: Align,
|
halign?: Align,
|
||||||
} | {
|
} | {
|
||||||
type: "h"
|
type: "h"
|
||||||
c: Hierarchy[],
|
c: Hierarchy[],
|
||||||
valign: Align,
|
valign?: Align,
|
||||||
} | {
|
} | {
|
||||||
type: "txt",
|
type: "txt",
|
||||||
label: string,
|
label: string,
|
||||||
font: FontNameWithScaleFactor,
|
font: FontNameWithScaleFactor,
|
||||||
} | {
|
} | {
|
||||||
type: undefined,
|
type: undefined, // blank, for padding
|
||||||
} | (
|
} | (
|
||||||
{
|
{
|
||||||
type: "btn",
|
type: "btn",
|
||||||
|
@ -112,8 +112,8 @@ declare module Layout_ {
|
||||||
type: "btn",
|
type: "btn",
|
||||||
cb: () => void,
|
cb: () => void,
|
||||||
label: string,
|
label: string,
|
||||||
font: FontNameWithScaleFactor,
|
font?: FontNameWithScaleFactor,
|
||||||
scale: number,
|
scale?: number,
|
||||||
}
|
}
|
||||||
) | {
|
) | {
|
||||||
type: "img",
|
type: "img",
|
||||||
|
|
Loading…
Reference in New Issue