mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 00:51:29 +08:00
Merge pull request #18073 from jklimke/allow_literals_for_sequelize_attribute_search
Allow literals for sequelize attribute selection
This commit is contained in:
2
types/sequelize/index.d.ts
vendored
2
types/sequelize/index.d.ts
vendored
@@ -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
|
||||
|
||||
7
types/sequelize/v3/index.d.ts
vendored
7
types/sequelize/v3/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user