ExtractTemplateVariables
@daydreamsai/core / ExtractTemplateVariables
Type Alias: ExtractTemplateVariables<T>
ExtractTemplateVariables<
T> =Textends`${infer Start}{{${infer Var}}}${infer Rest}`?Var|ExtractTemplateVariables<Rest> :never
Defined in: packages/core/src/types.ts:510
Extracts variable names from a template string
Type Parameters
T
T extends string
Template string type