Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Nov 15, 2018
1 parent f0d5e0b commit 4c9ad03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@foxify/odin",
"version": "0.2.1",
"version": "0.2.2",
"description": "Active Record Model",
"author": "Ardalan Amini <ardalanamini22@gmail.com> [https://github.com/ardalanamini]",
"contributors": [
Expand Down
6 changes: 3 additions & 3 deletions src/base/QueryBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ class QueryBuilder<T extends object = {}> extends Base<T> {
return this.query().count(callback as any) as any;
}

public static all<T extends object>(): Promise<Array<Model<T>>>;
public static all<T extends object>(callback: Driver.Callback<Array<Model<T>>>): void;
public static all(callback?: Driver.Callback<any>) {
public static get<T extends object>(): Promise<Array<Model<T>>>;
public static get<T extends object>(callback: Driver.Callback<Array<Model<T>>>): void;
public static get(callback?: Driver.Callback<any>) {
return this.query().get(callback as any) as any;
}

Expand Down

0 comments on commit 4c9ad03

Please sign in to comment.