Complete the code to define a template literal type that combines 'Hello' with a name.
type Greeting = `Hello, [1]`;The template literal type expects a string to combine with 'Hello,'.
Complete the code to create a type that prefixes 'ID_' to a number converted to string.
type ID = `ID_[1]`;The template literal type requires a string type inside the backticks to concatenate.
Fix the error in the template literal type that tries to combine a boolean with a string.
type Flag = `is[1]`;Template literal types can only combine string types, so 'string' is correct.
Fill both blanks to create a template literal type that combines a prefix and a suffix string.
type FullName = `$[1]$[2]`;
The template literal type combines two string types: FirstName and LastName.
Fill all three blanks to create a template literal type that formats a date string as 'YYYY-MM-DD'.
type DateString = `$[1]-[2]-[3]`;
The template literal type combines Year, Month, and Day string types to form a date.