My problem involves handling various types of data
type ParseMustaches<T extends string[], U extends Record<string, string> = {}> =
T extends `{{${infer U}}}`
? Record<U, string>
: never
type Test = ParseMustaches<["{{sitename}}", "{{user}}"]>
// The expected result for Test is { sitename: string, user: string }
I need assistance in creating an object with required keys, where the keys are inferred values and the values are strings. How can I accomplish this? Check out the playground using the TS version I am utilizing and here is the link to the PR that enables inferring strings