From 89c5938a4a73984d353a7fa09ad4558ce3fbe3f3 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Fri, 14 Apr 2023 21:23:25 +0800 Subject: [PATCH] Fix non-async Migration type --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index cf56fb1..55fd02a 100644 --- a/index.ts +++ b/index.ts @@ -75,7 +75,7 @@ export interface Options { /* Handler signature for when an extension updates. */ -export type Migration = (savedOptions: UserOptions, defaults: UserOptions) => Promise; +export type Migration = (savedOptions: UserOptions, defaults: UserOptions) => Promise | void; class OptionsSync { public static migrations = {