Skip to content

Commit

Permalink
fix(hooks): remove unused "done" callback
Browse files Browse the repository at this point in the history
fixes #561
  • Loading branch information
hasezoey committed Jun 17, 2021
1 parent ac1c6c9 commit 4692976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks.ts
Expand Up @@ -13,9 +13,9 @@ type ReturnVoid = void | Promise<void>;

type HookNextErrorFn = (err?: Error) => ReturnVoid;

type PreFnWithAggregate<T> = (this: Aggregate<T>, next: (error?: Error) => ReturnVoid, done: EmptyVoidFn) => ReturnVoid;
type PreFnWithAggregate<T> = (this: Aggregate<T>, next: (error?: Error) => ReturnVoid) => ReturnVoid;
type PreFnWithDocumentType<T> = (this: DocumentType<T>, next: HookNextErrorFn) => ReturnVoid;
type PreFnWithQuery<T> = (this: Query<any, DocumentType<T>>, next: (error?: Error) => ReturnVoid, done: EmptyVoidFn) => ReturnVoid;
type PreFnWithQuery<T> = (this: Query<any, DocumentType<T>>, next: (error?: Error) => ReturnVoid) => ReturnVoid;

type ModelPostFn<T> = (result: any, next: EmptyVoidFn) => ReturnVoid;

Expand Down

0 comments on commit 4692976

Please sign in to comment.