From 250ee974fbf1bc854831b55db633e4b9dad017c0 Mon Sep 17 00:00:00 2001 From: Christoph Walcher Date: Fri, 20 May 2022 18:54:54 +0200 Subject: [PATCH] use type error for cause --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 5e16f9a..0f2f6c2 100644 --- a/src/types.ts +++ b/src/types.ts @@ -62,7 +62,7 @@ export interface FullConfig { } export class MigrationError extends Error { - public cause?: string + public cause?: Error } export type FileType = "sql" | "js"