I have been utilizing a template literal type in the following manner:
type Greetings = `Hey ${string}`
const string = 'Universe'
function greet(string: string): Greetings {
return 'Hey' + string
}
However, I encountered an error message:
Type 'string' does not satisfy the type '`Hey ${string}`'.
Is there a solution to rectify this issue?