recently i've been asked to implement config files for my system, config for each environment. When i wanted to use the config i noticed that i dont have it typed, at least not in easy way.. So i created an index file which import and export the config adding an interface to it.
I wonder if i can add a type to my config (somehow) which will force the developers to stick to it and also provide us a type at compilation time.
Its like to have a config.ts file instead of config.json (maybe that what i should do?)
Thanks!