type TA = 'App' | 'Area';
type TB = 'getAppDetail' | 'getAreaDetail';
const a: TA = 'App';
const b: TB = `get${a}Detail`;
But get${a}Detail returns a string type. And it doesn't match type TB.
Is there any solutions to solve the problem here?
Thanks