From 1befe0ce571032f0ed88ff9dd979538c2847e4bc Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Wed, 18 Jan 2023 11:46:23 -0500 Subject: [PATCH] chore: revert onInit type change --- src/config/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/types.ts b/src/config/types.ts index 9b4034478b..afbe5a1033 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -100,7 +100,7 @@ export type InitOptions = { /** * A function that is called immediately following startup that receives the Payload instance as it's only argument. */ - onInit?: (payload: Payload) => Promise; + onInit?: (payload: Payload) => Promise | void; /** * Specify options for the built-in Pino logger that Payload uses for internal logging.