不要怂,就是干,撸起袖子干!

Commit 4dbabc0e by Siddharth Udeniya Committed by Sushant

fix(typings): added 'fieldMaps' to QueryOptions typings (#11702)

1 parent beeff96f
Showing with 6 additions and 0 deletions
......@@ -6,6 +6,7 @@ import { Sequelize, RetryOptions } from './sequelize';
import { Transaction } from './transaction';
type BindOrReplacements = { [key: string]: unknown } | unknown[];
type FieldMap = { [key: string]: string };
/**
* Interface for query options
......@@ -62,6 +63,11 @@ export interface QueryOptions extends Logging, Transactionable, Poolable {
mapToModel?: boolean;
retry?: RetryOptions;
/**
* Map returned fields to arbitrary names for SELECT query type if `options.fieldMaps` is present.
*/
fieldMap?: FieldMap;
}
export interface QueryOptionsWithWhere extends QueryOptions, Filterable {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!