Rob Pilling
e14d1f63d0
typescript: update types
2024-07-11 22:41:31 +01:00
Rob Pilling
650ceeac21
main.d.ts: make startsWith() 2nd arg optional
2024-07-11 21:21:34 +01:00
Rob Pilling
bf3b572b9e
power_usage: add module
2024-07-09 08:53:09 +01:00
Rob Pilling
1d2ec94f8d
settings: add BLE privacy option
2024-06-16 17:35:15 +01:00
Rob Pilling
34f78f6457
Update TS types
2024-06-16 17:17:26 +01:00
Rob Pilling
5ed250fb97
update main.d.ts
2024-04-26 22:55:07 +01:00
Rob Pilling
513c07d6fd
update main.d.ts
2024-04-26 22:55:07 +01:00
Rob Pilling
690799decc
clock_info.d.ts: improve `img` type
2024-04-20 18:18:52 +01:00
Rob Pilling
2bbef9f740
clkinfo: make `CLKINFO_FOCUS` a counter
...
This avoids issues when we have multiple clkinfos visible. The first clkinfo may want to focus itself, but a second clkinfo may then unfocus, deleting the first's effects (i.e. setting `CLKINFO_FOCUS`).
In detail:
`CLKINFO_FOCUS` will be set (to `true`) by the first handler (left hand clkinfo) and then unset (/ `delete`d) by the second handler (right hand clkinfo).
This is done in [the `touchHandler`](c2ea454a3b/apps/clock_info/lib.js (L313-L324)
).
This commit makes `CLKINFO_FOCUS` a count.
- When we have a tap on a previous clkinfo (previous as in, earlier in the event handler list), it'll focus itself, `CLKINFO_FOCUS++`
- The later handler comes along, unfocuses itself, `CLKINFO_FOCUS--`
- `CLKINFO_FOCUS` is now `1`, so clkinfo is registered as being focussed still, meaning quicklaunch will work because of:
> c2ea454a3b/apps/quicklaunch/boot.js (L36-L36)
Fixes #3355
2024-04-18 18:12:58 +01:00
Rob Pilling
7e38b9b677
Update typescript types
2024-03-25 20:52:34 +00:00
Anton
315d4b79d9
Add better deprecation descriptions
2024-03-21 11:29:02 +01:00
Anton
5684832970
Merge branch 'master' into deprecate-currency
2024-03-20 10:40:44 +01:00
Anton
436ead41b3
Mark currency info as deprecated in TS
2024-03-20 10:25:33 +01:00
Rob Pilling
10072d745e
Merge pull request #3252 from bobrippling/fix/layout-ts
...
Fix typescript for `Layout`
2024-03-20 08:34:37 +00:00
Rob Pilling
030765d409
layout.d.ts: permit assignment back to strings
...
... by making them strings instead of a string literal type
2024-03-16 13:08:09 +00:00
Rob Pilling
b04bc434c9
layout.d.ts: correctly assign { [id]: T } for layout elements
2024-03-16 13:08:07 +00:00
Rob Pilling
6ff12f54cf
layout.d.ts: Layout type - merge extracted ids union
2024-03-11 22:46:35 +00:00
Rob Pilling
19a041e410
layout.d.ts: Fix ExtractIds
2024-03-11 22:41:55 +00:00
Rob Pilling
736b9f0433
clock_info: permit focus/blur to cancel a redraw
2024-03-11 21:47:54 +00:00
Rob Pilling
2c92c94574
clock_info: s/unfocus/blur/
2024-03-11 08:53:51 +00:00
Rob Pilling
8f86d9297b
clock_info: add focus and unfocus to item
2024-03-11 08:53:42 +00:00
Rob Pilling
30d1bc7c4c
clock_info: pass options through to show(), hide() & run()
2024-03-11 08:53:23 +00:00
Rob Pilling
40b718ed49
sched: add setting to buzz forever when alarm is fired
2024-02-28 22:35:58 +00:00
Rob Pilling
73218e4180
Regenerate typescript
2023-07-27 17:32:12 +01:00
Rob Pilling
76a60d6ae3
layout.d.ts: correct render() type
2023-06-30 12:23:22 +01:00
Rob Pilling
8036509b18
layout.d.ts: add btnBorder
2023-06-30 08:26:44 +01:00
Rob Pilling
553d363f90
layout.d.ts: alignment fixes
2023-06-30 08:26:44 +01:00
Rob Pilling
739ddb731f
layout.d.ts: Layout's fill can be any proportion
2023-06-30 08:26:44 +01:00
Rob Pilling
efd1891ff5
layout.d.ts: render(), layout(), debug() and clear() accept any layout hierarchy
2023-06-30 08:26:44 +01:00
Rob Pilling
9c72a8210d
layout.d.ts: add rotation / l.r
2023-06-30 08:26:44 +01:00
Rob Pilling
557b426b63
typescript: remove `Layout_` naming hack
2023-06-30 08:26:44 +01:00
Rob Pilling
a42e00dc20
Regenerate main.d.ts
2023-06-13 23:08:35 +01:00
Rob Pilling
5fcdbc2911
types: add BangleEvents
2023-05-16 23:16:34 +01:00
Rob Pilling
557f77f7c8
Regenerate types
2023-05-16 22:50:33 +01:00
Bruce Blore
06a7adca30
Made tags, type, and version optional
2023-05-13 14:28:10 -07:00
Bruce Blore
50789ad62c
Added some fields to AppInfo
2023-05-13 08:08:01 -07:00
Rob Pilling
566400b26c
Tweaks to sched.d.ts to type-check the docs example
...
[The docs example](https://github.com/espruino/BangleApps/tree/master/apps/sched#internals--library )
2023-05-10 20:54:38 +01:00
Rob Pilling
28fe46f77e
widhid: disable if clkinfo is focused
2023-05-08 22:33:50 +01:00
Rob Pilling
69bfcfeb99
widhid: regenerate JS
2023-05-08 22:33:50 +01:00
Rob Pilling
9cdf97164c
widhid: new widget
2023-05-08 22:33:50 +01:00
Rob Pilling
df50a4dd7b
Add AppInfo type
2023-05-03 07:51:29 +01:00
Rob Pilling
fc82d3b13b
Update typescript & remove "use strict"s
2023-04-20 13:09:52 +01:00
Rob Pilling
f68abbd33d
Regenerate types: ShortBoolean
2023-04-11 18:15:13 +01:00
Rob Pilling
7ee3279a02
Update main.d.ts
2023-04-08 08:30:43 +01:00
Rob Pilling
923b5dbb96
drained: clearWatch() and turn off bluetooth
2023-04-08 08:25:54 +01:00
Rob Pilling
acbd5d3b53
Update main.d.ts - setUI & removeAllListeners()
2023-04-07 21:53:07 +01:00
Rob Pilling
f1bb41743e
Add local modules types to require()
2023-03-09 21:14:59 +00:00
Rob Pilling
9762acd981
Locale module types
2023-03-09 21:14:59 +00:00
Rob Pilling
0be2bbe2f7
Move repeat & date to a mutually inclusive group
2023-03-09 21:14:59 +00:00
Rob Pilling
8525fc73da
sched.d.ts: add
2023-03-09 21:14:59 +00:00