Complete the code to create a template literal type that combines 'Hello' and 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 type.
type PrefixedID = `ID_[1]`;The template literal type can convert a number to a string by embedding it in the template.
Fix the error in the template literal type that tries to combine a boolean with a string.
type StatusMessage = `Status: [1]`;Template literal types require string-compatible types; boolean is not allowed directly.
Fill both blanks to create a type that combines a prefix and a suffix with a string.
type FullName = `[1]$[2]`;
The template literal combines two string types representing first and last names.
Fill all three blanks to create a type that formats a URL with protocol, domain, and path.
type URL = `[1]://$[2]/[3]`;
This template literal type builds a URL string from protocol, domain, and path parts.