Skip to content

Commit

Permalink
Moved traverseAsync typing from Querybuilder class to Model class
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanMauro authored and koskimas committed Feb 28, 2021
1 parent 93cc075 commit 17ae4ca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions typings/objection/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,11 +1082,6 @@ declare namespace Objection {
// Deprecated
omit(properties: string[]): this;

traverse(filterConstructor: typeof Model, traverser: TraverserFunction): R;
traverse(traverser: TraverserFunction): R;
traverseAsync(filterConstructor: typeof Model, traverser: TraverserFunction): Promise<R>;
traverseAsync(traverser: TraverserFunction): Promise<R>;

page(page: number, pageSize: number): PageQueryBuilder<this>;
range(): PageQueryBuilder<this>;
range(start: number, end: number): PageQueryBuilder<this>;
Expand Down Expand Up @@ -1646,6 +1641,12 @@ declare namespace Objection {
models: Model | Model[],
traverser: TraverserFunction
): void;
static traverseAsync(models: Model | Model[], traverser: TraverserFunction): Promise<void>;
static traverseAsync(
filterConstructor: typeof Model,
models: Model | Model[],
traverser: TraverserFunction
): Promise<void>;

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

0 comments on commit 17ae4ca

Please sign in to comment.