mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
use PromiseLike in custom resolvers
This allows bluebird promises (or any other promise implementation) without casting to any.
This commit is contained in:
2
types/umzug/index.d.ts
vendored
2
types/umzug/index.d.ts
vendored
@@ -41,7 +41,7 @@ declare namespace umzug {
|
||||
* See https://github.com/sequelize/umzug/tree/master/test/fixtures
|
||||
* for examples.
|
||||
*/
|
||||
customResolver?(path: string): { up: () => Promise<any>, down?: () => Promise<any> };
|
||||
customResolver?(path: string): { up: () => PromiseLike<any>, down?: () => PromiseLike<any> };
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user