TemplateResolver
@daydreamsai/core / TemplateResolver
Type Alias: TemplateResolver()<Ctx>
TemplateResolver<
Ctx
> = (path
,ctx
) =>MaybePromise
<any
>
Defined in: packages/core/src/types.ts:1281
Function type for resolving template variables in context
Type Parameters
Ctx
Ctx
= any
The context type
Parameters
path
string
The path to the template variable
ctx
Ctx
The context object
Returns
MaybePromise
<any
>
The resolved value