Skip to content

Commit

Permalink
fix: Promise-returning function provided to property where a void ret…
Browse files Browse the repository at this point in the history
…urn was expected
  • Loading branch information
JBR90 committed Nov 22, 2024
1 parent 76558d7 commit 1c01835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nextjs/src/hooks/useGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ type HookState<TSchema extends z.Schema> =
| FailedGenerationState;

type UseGenerationReturnValue<TSchema extends z.Schema> = {
requestGeneration: (mutationInputs: MutationInputs) => void;
requestGeneration: (mutationInputs: MutationInputs) => Promise<void>;
} & HookState<TSchema>;

enum UGActionType {
Expand Down

0 comments on commit 1c01835

Please sign in to comment.