Skip to content

Commit

Permalink
Fix FieldCreateItemAccessArgs inputData typings (#8017)
Browse files Browse the repository at this point in the history
  • Loading branch information
acburdine authored Oct 19, 2022
1 parent 242b552 commit 958d7c0
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

1 comment on commit 958d7c0

@vercel
Copy link

@vercel vercel bot commented on 958d7c0 Oct 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.