Skip to content

Commit

Permalink
Fix non-async Migration type
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Apr 14, 2023
1 parent 1e75b41 commit 89c5938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface Options {
/*
Handler signature for when an extension updates.
*/
export type Migration<UserOptions extends Options> = (savedOptions: UserOptions, defaults: UserOptions) => Promise<void>;
export type Migration<UserOptions extends Options> = (savedOptions: UserOptions, defaults: UserOptions) => Promise<void> | void;

class OptionsSync<UserOptions extends Options> {
public static migrations = {
Expand Down

0 comments on commit 89c5938

Please sign in to comment.