Commit Graph

133 Commits (2a959a787b80e9945c99f8011e0004c41d1579d7)

Author SHA1 Message Date
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
Rob Pilling d9dc729abd Regenerate types - NRF.getSecurityStatus() 2023-03-06 12:05:32 +00:00
Gordon Williams ef43eba307
Merge pull request #2606 from bobrippling/tap2lock
widlockunlock: tap-to-lock
2023-02-28 09:27:01 +00:00
Gordon Williams 8cbc93f110
Merge pull request #2604 from bobrippling/regen-ts
Regenerate `main.d.ts`
2023-02-27 09:34:19 +00:00
Rob Pilling 9f4e4bc981 Regenerate object.call types 2023-02-25 23:21:18 +00:00
Rob Pilling e44e4c0274 Regenerate main.d.ts - fromEntries & getOwnPropertyDescriptors 2023-02-25 23:21:18 +00:00
Rob Pilling 92fd9133fb Regenerate main.d.ts - Widget types 2023-02-25 22:23:53 +00:00
Rob Pilling 9403bf05b0 clock_info.d.ts .app addition 2023-02-25 21:18:26 +00:00
Rob Pilling 70da1d37e5 Regenerate main.d.ts - String::slice()'s end is optional 2023-02-20 18:32:42 +00:00
Rob Pilling f5a9cc578e Update clock_info.d.ts - optional hasRange 2023-02-20 18:32:25 +00:00
Rob Pilling 12575cda34 Reformat typescript/**/*.d.ts 2023-02-19 21:07:12 +00:00
Rob Pilling f7cc2bff5e typescript: add to authors 2023-02-19 17:58:22 +00:00
Rob Pilling 2d1a3cec8f btadv: minimum confidence level for HRM 2023-02-14 22:34:09 +00:00
Rob Pilling f92ffd5d88 layout.d.ts: update optionals 2023-02-14 22:33:30 +00:00
Rob Pilling 79ebde3e69 layout.d.ts: ExtractIds gives back { id: T } 2023-02-14 22:33:30 +00:00
Rob Pilling ec75c37d37 layout.d.ts: rename out the way 2023-02-14 22:33:30 +00:00
Rob Pilling d65c6b6847 typescript ReturnType<> 2023-02-14 22:32:57 +00:00
Rob Pilling 5ebc5cd880 Typescript version updates 2023-02-14 22:32:57 +00:00
Rob Pilling 571adb88ce typescript: menu and font fixes 2023-02-14 22:32:55 +00:00
Rob Pilling 65449336fb ClockFace.d.ts 2023-02-14 22:32:02 +00:00
Rob Pilling d2b28ac2bd layout.d.ts 2023-02-14 22:32:01 +00:00
Rob Pilling 2e793391b2 clock_info.d.ts 2023-02-14 22:32:01 +00:00
Rob Pilling 008f7f40e5 Initial typescript config 2023-02-14 22:32:00 +00:00
Rob Pilling 486ca23c4c Regenerate typescript / main.d.ts
This regenerates `main.d.ts` from [`build_types.js`] in the espruino repo, after [updates to optionals and other changes].

The main changes are new modules, and some older typings that might have not been regenerated since their jsdoc/comments changed.

New module typings:
- CC3000
- ESP8266
- Flash
- NetworkJS
- Storage
- TelnetServer
- WIZnet
- Wifi
- crypto
- dgram
- fs
- heatshrink
- http
- neopixel
- net
- tensorflow
- tls
- tv

[`build_types.js`]: 149a7f6bac/scripts/build_types.js
[updates to optionals and other changes]: https://github.com/espruino/Espruino/pull/2322
2023-02-09 18:15:42 +00:00
dependabot[bot] 8482576064
Bump node-fetch from 3.2.9 to 3.2.10 in /typescript
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 3.2.9 to 3.2.10.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v3.2.9...v3.2.10)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-04 08:28:46 +00:00
Gordon Williams 64776ae383 remove BEEPSET workaround - from 3 year old firmware 2022-11-01 09:28:29 +00:00
Gordon Williams 11a03bfb82
Merge pull request #2063 from qucchia/typescript-2
Move tsconfig.json
2022-07-28 08:42:57 +01:00
qucchia 667684def0 Move tsconfig.json 2022-07-27 17:48:12 +02:00
qucchia 66eba7ec02 TypeScript: Update types 2022-07-27 17:42:20 +02:00
qucchia 0c2abfb7e1 TypeScript: Refer to Espruino README 2022-07-27 17:41:59 +02:00
qucchia 8a3e6c2b8d Update types 2022-07-23 20:36:14 +02:00
qucchia aee02b93e3 TypeScript: Add JSDoc comments 2022-07-22 11:27:08 +02:00
qucchia b3496a0c74 TypeScript: remove build:types 2022-07-22 09:59:16 +02:00
qucchia 0300bfe773 Types: fix broken library URLs 2022-07-22 09:58:49 +02:00
qucchia 2f7edabf87 Include all types, overriding JS defaults 2022-07-22 08:21:47 +02:00
qucchia 61835e8d64 Update types with events 2022-07-21 12:50:04 +02:00
qucchia defd8050f4 Define types for ‘g’ and ‘WIDGETS’ 2022-07-21 12:36:05 +02:00
qucchia 194827a947 Update types from new script 2022-07-21 12:30:15 +02:00
qucchia 3b84f17a22 Further improve types documentation 2022-07-20 21:07:18 +02:00
qucchia 0526ed86ea Types: improve require function 2022-07-20 20:35:57 +02:00
qucchia 2311fe91ec Update types 2022-07-20 19:23:16 +02:00
qucchia 1d400aa8a7 Update to new types 2022-07-20 17:57:03 +02:00
qucchia cbd6e7d7f8 Update TypeScript README 2022-07-20 16:23:38 +02:00
qucchia e552f08a71 Documentation: fix relative links 2022-07-20 16:12:48 +02:00
qucchia bfa05bb8bf Format documentation comments as Markdown 2022-07-20 15:51:15 +02:00
qucchia bc123a7788 Fix documentation comments 2022-07-20 15:35:57 +02:00
qucchia 805b5026da Start auto-generating types 2022-07-20 15:07:21 +02:00
qucchia bff1298d99 Add new typings for TypeScript 2022-07-19 09:49:47 +02:00
Felix Wiedenbach 267f043dfe documents all four possible widget areas 2022-06-16 10:28:25 +02:00
Salim Blume 31fd2344a8 Fix for buzz type updated in previous commit 2022-04-05 21:05:03 -05:00
Salim Blume 88a785df7f Update some types 2022-04-05 20:58:33 -05:00
Salim Blume 75c4e5b54b bthrm fixes for reading characteristics generally and displaying location 2022-04-04 16:48:15 -05:00
Sebastian Di Luzio ebbbf69670 adjust module target version during build 2022-01-20 21:23:17 +01:00
Sebastian Di Luzio 4727652627 rename build step to be less confusing for widgets 2022-01-20 21:09:57 +01:00
Sebastian Di Luzio 7b37391553 remove unused files from /banglerun, replace banglerun js code with newly compiled code 2022-01-20 20:58:26 +01:00
Adam Schmalhofer 4dbec88b7f Port banglerun to new typescript system 2022-01-18 14:49:28 +01:00
Sebastian Di Luzio fc2c3c86a4 document typing progress 2021-12-10 23:17:18 +01:00
Sebastian Di Luzio 0499f04dc3 try to use strict again 2021-12-10 22:36:22 +01:00
Sebastian Di Luzio d255d42a8c disable strict to see if that fixes widget 2021-12-10 22:27:25 +01:00
Sebastian Di Luzio 4990c42675 Update tsconfig.json 2021-12-10 22:04:43 +01:00
Sebastian Di Luzio a86f2c108d Update README.md 2021-12-10 22:02:41 +01:00
Sebastian Di Luzio d7be82bcc7 Update README.md 2021-12-10 22:01:01 +01:00
Sebastian Di Luzio 96b099b10a make tsconfig work for all ts apps 2021-12-10 21:51:35 +01:00
Sebastian Di Luzio 15d24ac1b3 update TS rules to make them stricter 2021-12-10 21:36:42 +01:00
Sebastian Di Luzio 45bd654eca fix global vars inside IDE (only cli to go) 2021-12-10 21:19:01 +01:00
Sebastian Di Luzio 83d445c1a2 move package back within typescript 2021-12-10 20:52:17 +01:00
Sebastian Di Luzio 63b26f5d1f move dev dependencies to main package.json, get first compiling version of test widget
- i still want to be able to get the types ambiently defined without any weird import needed
- it would be nice to be able to have a separate package.json in ./typescirpt. not sure if it's possible, I would move working on that part to the end
2021-12-08 20:22:39 +01:00
Sebastian Di Luzio 61cc93b0b6 prepare for using with widChargingStatus
global types are not yet received correctly, but we're close!

- use widChargerStatus as first example to make setup work
- add github action to compile supplied types/globals on pushes
2021-12-07 22:27:09 +01:00
Sebastian Di Luzio 3cd9c39525 add build example to export to correct path 2021-12-07 21:46:28 +01:00
Sebastian Di Luzio 39c3a11d9f first draft: does not export to correct path yet 2021-12-07 21:38:09 +01:00