Skip to content

Commit

Permalink
Fix types of (#6487)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie authored Sep 7, 2021
1 parent 110e5a7 commit 144f7f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/loud-meals-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': patch
---

Fixed type definition of `ValidationArgs['addValidationError']`.
2 changes: 1 addition & 1 deletion packages/keystone/src/types/config/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type ArgsForCreateOrUpdateOperation<TGeneratedListTypes extends BaseGeneratedLis
};

type ValidationArgs = {
addValidationError: (error: string, data?: {}, internalData?: {}) => void;
addValidationError: (error: string) => void;
};

type ResolveInputHook<TGeneratedListTypes extends BaseGeneratedListTypes> = (
Expand Down

0 comments on commit 144f7f8

Please sign in to comment.