mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Remove: callback-based find with arity of 1
This commit is contained in:
11
types/loopback/index.d.ts
vendored
11
types/loopback/index.d.ts
vendored
@@ -1413,17 +1413,6 @@ declare namespace l {
|
||||
*/
|
||||
static exists(id: any): Promise<boolean>;
|
||||
|
||||
/**
|
||||
* Find all model instances that match `filter` specification.
|
||||
* See [Querying models](docs.strongloop.com/display/LB/Querying+models)
|
||||
* @callback {() => void} callback Callback function called with `(err, returned-instances)` arguments. Required.
|
||||
* @param {Error} err Error object; see [Error object](docs.strongloop.com/display/LB/Error+object).
|
||||
* @param {Array} models Model instances matching the filter, or null if none found
|
||||
*/
|
||||
static find<T = any>(
|
||||
callback: CallbackWithResult<T[]>
|
||||
): void;
|
||||
|
||||
/**
|
||||
* Find all model instances that match `filter` specification.
|
||||
* See [Querying models](docs.strongloop.com/display/LB/Querying+models)
|
||||
|
||||
Reference in New Issue
Block a user