Merge pull request #18073 from jklimke/allow_literals_for_sequelize_attribute_search

Allow literals for sequelize attribute selection
This commit is contained in:
Wesley Wigham
2017-07-19 14:34:47 -07:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -3198,7 +3198,7 @@ declare namespace sequelize {
/**
* Shortcut for types used in FindOptions.attributes
*/
type FindOptionsAttributesArray = Array<string | [string, string] | fn | [fn, string] | cast | [cast, string]>;
type FindOptionsAttributesArray = Array<string | literal | [string, string] | fn | [fn, string] | cast | [cast, string] | [literal, string]>;
/**
* Options that are passed to any model creating a SELECT query

View File

@@ -3138,9 +3138,9 @@ declare namespace sequelize {
}
/**
* Shortcut for types used in FindOptions.attributes
*/
type FindOptionsAttributesArray = Array<string | [string, string] | fn | [fn, string] | cast | [cast, string]>;
* Shortcut for types used in FindOptions.attributes
*/
type FindOptionsAttributesArray = Array<string | literal | [string, string] | fn | [fn, string] | cast | [cast, string] | [literal, string]>;
/**
* Options that are passed to any model creating a SELECT query
@@ -5713,6 +5713,7 @@ declare namespace sequelize {
transaction(autoCallback: (t: Transaction) => PromiseLike<any>): Promise<any>;
transaction(options?: TransactionOptions): Promise<Transaction>;
/**
* Close all connections used by this sequelize instance, and free all references so the instance can be
* garbage collected.