From 9505009bc0ea4a0930262fac485f70c5b2008abc Mon Sep 17 00:00:00 2001 From: mmkal Date: Sun, 7 Apr 2019 18:25:44 -0400 Subject: [PATCH] use PromiseLike in custom resolvers This allows bluebird promises (or any other promise implementation) without casting to any. --- types/umzug/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/umzug/index.d.ts b/types/umzug/index.d.ts index a163ea01d9..e7d761ab3c 100644 --- a/types/umzug/index.d.ts +++ b/types/umzug/index.d.ts @@ -41,7 +41,7 @@ declare namespace umzug { * See https://github.com/sequelize/umzug/tree/master/test/fixtures * for examples. */ - customResolver?(path: string): { up: () => Promise, down?: () => Promise }; + customResolver?(path: string): { up: () => PromiseLike, down?: () => PromiseLike }; }