Creates a type that allows for autocomplete suggestions on a string type, while not giving errors for other values.
Type Parameters
T extends string
A union type of string literals to add to the autocomplete.
Example
// Will allow autocomplete for "abc", "b", and "def", and will not throw errors for other string values. typeOriginal = LooseAutocomplete<"abc" | "b" | "def">; // "abc" | "b" | "def" | (Omit<string, "abc" | "b" | "def"> & string)
Creates a type that allows for autocomplete suggestions on a string type, while not giving errors for other values.