mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #32314 from pbgodwin/change-massive-query-signature
[massive] Allow named parameters to be passed to Database.query
This commit is contained in:
Vendored
+4
-1
@@ -105,6 +105,9 @@ declare namespace massive {
|
||||
term: string;
|
||||
}
|
||||
|
||||
type QueryParamTypes = string | number | object;
|
||||
type QueryParams = QueryParamTypes[] | QueryParamTypes;
|
||||
|
||||
interface EntitySpecification {
|
||||
/** A Database. */
|
||||
db: Database;
|
||||
@@ -442,7 +445,7 @@ declare namespace massive {
|
||||
/** Execute a query. */
|
||||
query(
|
||||
query: Select | Insert | Update | Delete | string,
|
||||
params?: string[],
|
||||
params?: QueryParams,
|
||||
options?: ResultProcessingOptions
|
||||
): Promise<any>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user