Skip to content

Commit

Permalink
Added traverseAsync typing to ModelClass as well
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanMauro authored and koskimas committed Feb 28, 2021
1 parent 17ae4ca commit 056411b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions typings/objection/index.d.ts
Expand Up @@ -1506,6 +1506,12 @@ declare namespace Objection {
models: Model | Model[],
traverser: TraverserFunction
): void;
traverseAsync(models: Model | Model[], traverser: TraverserFunction): Promise<void>;
traverseAsync(
filterConstructor: ModelConstructor<Model>,
models: Model | Model[],
traverser: TraverserFunction
): Promise<void>;

beforeFind(args: StaticHookArguments<any>): any;
afterFind(args: StaticHookArguments<any>): any;
Expand Down

0 comments on commit 056411b

Please sign in to comment.