See PR #2268 <https://github.com/leo-editor/leo-editor/pull/2268/>for code details. This command contains some of the most elegant code I have ever written. I am proud of it. I (and python!) have come a long way since 2001!
To use, select any @<file> node and execute python-to-typescript. The command creates (safe!) results in the last top-level node of the outline. The command attempts no type analysis. It uses "void" as the type of all functions and methods. However, the script will annotate function/method arguments: *@data python-to-typescript-types* in leoSettings.leo contains a list of key/value pairs. Keys are argument names (as used in Leo); values are typescript type names. This concludes the planned work on the command. I'll be using the command to help transliterate some of Leo's core files to typescript for leoInteg 2.0. Please report any problems. Feel free to ask any questions. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/74e583c3-9f96-4dab-a226-4e15bf09e57fn%40googlegroups.com.
