3 ms·
Just create types for all objects in your configuration as well as the configuration object itself. The ”DSL” is the typings, and the rest is nothing more than
by eurasiantiger 4y ago
Just create types for all objects in your configuration as well as the configuration object itself.
The ”DSL” is the typings, and the rest is nothing more than a simple TS program which calls JSON.stringify() with the type-checked config object and writes the resulting string to disk.