Skip to content

Commit

Permalink
fix: outdated types
Browse files Browse the repository at this point in the history
  • Loading branch information
eeston authored and anonrig committed Mar 14, 2021
1 parent c528091 commit 2421949
Show file tree
Hide file tree
Showing 2 changed files with 9,513 additions and 43 deletions.
10 changes: 5 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Context } from "mali";
import type { Context } from "mali";

declare function onError (
fn: (err: Error, ctx: Context) => any
): (ctx: Context, next?: () => Promise<any>) => Promise<void>;
declare function onError(
fn: (err: Error, ctx: Context<any>) => any
): (ctx: Context<any>, next?: () => Promise<any>) => Promise<void>;

export = onError;
export = onError;
Loading

0 comments on commit 2421949

Please sign in to comment.