Skip to content

Commit

Permalink
feat(pencil): adjust typescript query typins to support plain option
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels authored and mcuelenaere committed Feb 12, 2020
1 parent 43a8d61 commit 2605693
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions types/lib/sequelize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,7 @@ export class Sequelize extends Hooks {
sql: string | { query: string; values: unknown[] },
options: QueryOptionsWithModel
): Promise<M[]>;
public query<T extends object>(sql: string | { query: string; values: unknown[] }, options: QueryOptionsWithType<QueryTypes.SELECT> & { plain: true }): Promise<T>;
public query<T extends object>(sql: string | { query: string; values: unknown[] }, options: QueryOptionsWithType<QueryTypes.SELECT>): Promise<T[]>;
public query(sql: string | { query: string; values: unknown[] }, options?: QueryOptions | QueryOptionsWithType<QueryTypes.RAW>): Promise<[unknown[], unknown]>;

Expand Down

0 comments on commit 2605693

Please sign in to comment.