This script generates a Typescript typedef file for Loki's configuration file.
I've also included the output of the script at time of writing. If major changes are made to Loki, the typedefs will fall out of date.
If you use Typescript to generate the Loki configuration (notably, all JSON is also YAML, so you can JSON.stringify a Typescript object), this file would be useful.
I haven't bothered putting this in a repo because I'd also feel the need to generate a pipeline to regenerate the file to keep it up to date, and re-publish it as an NPM package.