I have this function
function parseControllerName(name: string) {
return lowerFirst(name.replace('Controller', ''))
}
and I have an Object which is something like
{
AccountController: controllers.AccountController,
AuthController: controllers.AuthController,
...
}
I want to make a type that would parse all of these Object keys through parseControllerName method so the type becomes this
{
account: controllers.AccountController,
auth: controllers.AuthController,
...
}