Complete the code to define a string literal type for colors.
type Color = [1];The type Color is defined as a union of string literals representing specific colors.
Complete the code to create a type-safe pattern for a URL string starting with 'http'.
type HttpUrl = `http${string}`;The template literal type HttpUrl starts with the string literal "http" followed by any string.
Fix the error in the type that should match strings ending with '.json'.
type JsonFile = `${string}.json`;The type JsonFile matches any string ending with the literal ".json".
Fill both blanks to define a type-safe pattern for a version string like 'v1.0'.
type Version = `${"v"}${string}${"."}${string}`;The Version type starts with "v" followed by a dot "." to form strings like "v1.0".
Fill all three blanks to create a type-safe pattern for a file path like '/home/user'.
type FilePath = `${"/"}${"home"}${"/"}${"user"}`;The FilePath type builds a string starting with "/", then "home", then "/", then "user" to form "/home/user".