I have a object
const navigatorNames: NavigatorNamesType = { homeNavigation: 'HomeNavigation', authNavigation: 'AuthNavigation'}
where type is
type NavigatorNamesType = { homeNavigation: 'HomeNavigation', authNavigation: 'AuthNavigation'}
all I want is to create another type which is like
type NewType={'HomeNavigation':undefined;'AuthNavigation':undefined;}
but this type should be dynamic in sense tenter code herehat if another key value is added in navigatorNames and NavigatorNamesTypes then NewType should automatically get update with that value as key and type as undefined.