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.