We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents caa5cef + 1befe0c commit 9b949daCopy full SHA for 9b949da
src/config/types.ts
@@ -100,7 +100,7 @@ export type InitOptions = {
100
/**
101
* A function that is called immediately following startup that receives the Payload instance as it's only argument.
102
*/
103
- onInit?: (payload: Payload) => Promise<Payload>;
+ onInit?: (payload: Payload) => Promise<void> | void;
104
105
106
* Specify options for the built-in Pino logger that Payload uses for internal logging.
0 commit comments