I want to write a TypeScript util helper called "KeyByValue" to get a key from object by its value. It is possible?
const keyStorage = {
blue: 'car',
};
// so
// type KeyByValue<val> =
// | value | key
// I want a TypeScript helper --> KeyByValue<'car'> --> blue