mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-17 14:11:23 +01:00
Add aliases field to template functions
This commit is contained in:
1 parent
9915c57817
commit
6060ddcd87
10 files changed
+44
-145
No files matched your search
@@ -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