mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-20 00:23:58 +01:00
Add aliases field to template functions
This commit is contained in:
@@ -164,16 +164,16 @@ async function initialize() {
|
||||
},
|
||||
/** @deprecated: please use ctx.templates.render */
|
||||
async render(args) {
|
||||
const payload = {
|
||||
const payload: InternalEventPayload = {
|
||||
type: 'template_render_request',
|
||||
data: args.httpRequest,
|
||||
data: args.httpRequest as any,
|
||||
purpose: args.purpose,
|
||||
} as const;
|
||||
};
|
||||
const result = await sendAndWaitForReply<TemplateRenderResponse>(
|
||||
event.windowContext,
|
||||
payload,
|
||||
);
|
||||
return result.data as HttpRequest;
|
||||
return result.data as unknown as HttpRequest;
|
||||
},
|
||||
},
|
||||
templates: {
|
||||
|
||||
Reference in New Issue
Block a user