use PromiseLike in custom resolvers

This allows bluebird promises (or any other promise implementation) without casting to any.
This commit is contained in:
mmkal
2019-04-07 18:25:44 -04:00
committed by GitHub
parent 6f7a141fb8
commit 9505009bc0

View File

@@ -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> };
}