Skip to content

Commit

Permalink
Finish refactor on AppListenerManager
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert committed Dec 29, 2023
1 parent 62596c7 commit d5109e0
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 342 deletions.
2 changes: 1 addition & 1 deletion deno-runtime/handlers/listener/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default async function handleListener(method: string, params: unknown): P

try {
const args = parseArgs(evtInterface, params);
return await (eventExecutor as Function).apply(app, args);
return await (eventExecutor as (...args: unknown[]) => Promise<Defined>).apply(app, args);
} catch (e) {
if (e instanceof JsonRpcError) {
return e;
Expand Down
Loading

0 comments on commit d5109e0

Please sign in to comment.