From 0c2abfb7e101bb6c476f4b14797fc6479eb099db Mon Sep 17 00:00:00 2001 From: qucchia Date: Wed, 27 Jul 2022 17:41:59 +0200 Subject: [PATCH] TypeScript: Refer to Espruino README --- typescript/README.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/typescript/README.md b/typescript/README.md index a5bd69c04..7c1e21abd 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -1,7 +1,10 @@ # Bangle.ts -A generic project setup for compiling apps from Typescript to Bangle.js ready, readable JavaScript. -The types are now automatically generated by a script (see below), although they are still a work-in-progress. +A generic project setup for compiling apps from Typescript to +Bangle.js-ready, readable JavaScript. + +The types are now automatically generated by a script (see +[here](https://github.com/espruino/Espruino/blob/master/TYPESCRIPT.md). ## Compilation @@ -21,13 +24,3 @@ npm run build ``` To build all Typescript apps and widgets. The last command will generate the `app.js` files containing the transpiled code for the Bangle.js. - -## Generating types - -To generate the types, ensure this repository and [Espruino](https://github.com/espruino/Espruino) are in the same folder. From the Espruino folder run: - -``` -node scripts/build_types.js -``` - -This will update the file in `types/main.d.ts`.