You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I am halfway through Type definition of Bangle API

    I can't remember for sure, but I think the initial definition may have been made with a script? There should be a decent amount of info in the Espruino codebase (those /*JSON comments in the code) to help, and if it's not detailed enough we could look at improving that, so we have a way of always creating typescript decls that are up to date.

    https://github.com/espruino/Espruino/blob/master/scripts/build_jsstub.py is a simple example, but there's actually much more type info in there

About

Avatar for Gordon @Gordon started