Skip to content

Commit

Permalink
Fix FieldCreateItemAccessArgs inputData typings
Browse files Browse the repository at this point in the history
  • Loading branch information
acburdine committed Oct 19, 2022
1 parent 242b552 commit 1c7619c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/plenty-fireants-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-6/core': patch
---

Fixes the inputData field type for FieldCreateItemAccessArgs
2 changes: 1 addition & 1 deletion packages/core/src/types/config/access-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export type FieldCreateItemAccessArgs<ListTypeInfo extends BaseListTypeInfo> =
/**
* The input passed in from the GraphQL API
*/
inputData: ListTypeInfo['item'];
inputData: ListTypeInfo['inputs']['create'];
};

export type FieldReadItemAccessArgs<ListTypeInfo extends BaseListTypeInfo> =
Expand Down

0 comments on commit 1c7619c

Please sign in to comment.