diff --git a/types/umzug/index.d.ts b/types/umzug/index.d.ts index 0954170b71..634c247bd4 100644 --- a/types/umzug/index.d.ts +++ b/types/umzug/index.d.ts @@ -28,6 +28,16 @@ declare namespace umzug { */ wrap?: (fn: T) => T; + /** + * A function that maps a file path to a migration object in the form + * { up: Function, down: Function }. The default for this is to require(...) + * the file as javascript, but you can use this to transpile TypeScript, + * read raw sql etc. + * See https://github.com/sequelize/umzug/tree/master/test/fixtures + * for examples. + */ + customResolver?(path: string): { up: () => Promise, down?: () => Promise }; + } interface JSONStorageOptions {