Skip to content

Commit 1befe0c

Browse files
committed
chore: revert onInit type change
1 parent 63ca512 commit 1befe0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export type InitOptions = {
100100
/**
101101
* A function that is called immediately following startup that receives the Payload instance as it's only argument.
102102
*/
103-
onInit?: (payload: Payload) => Promise<Payload>;
103+
onInit?: (payload: Payload) => Promise<void> | void;
104104

105105
/**
106106
* Specify options for the built-in Pino logger that Payload uses for internal logging.

0 commit comments

Comments
 (0)