Skip to content

Type errors when following Authentication and Access guide from the docs. #9336

Closed Answered by dcousens
indexofmetals asked this question in Questions
Discussion options

You must be logged in to vote

Property 'session' is optional in type 'BaseAccessArgs & { operation: "query"; }' but required in type '{ session: Session; }'.

The session: Session type should be optional session?: Session.
The documentation is in error here, and has been fixed in bf30044 ✔️.

Thanks for questioning this @indexofmetals! 💛

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dcousens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants