Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: type error in access client types #940

Closed
wants to merge 4 commits into from

Conversation

travis
Copy link
Member

@travis travis commented Oct 2, 2023

This has had red squigglies in VSCode for a bit, but I assumed it was superfluous until I saw the error in a downstream project I was working on earlier today:

Screenshot 2023-10-02 at 4 21 49 PM

The issue seems to stem from the generic type R on InvokeOptions - when I use the reified Resource rather than the generic R it goes away.

With R:

Screenshot 2023-10-02 at 4 19 51 PM Screenshot 2023-10-02 at 4 19 36 PM

With Resource:

Screenshot 2023-10-02 at 4 20 04 PM

I don't fully understand why this fixes the error I was seeing, but a) it does and b) I don't see much value in the generic type here.

Pushing this up to start a discussion about whether this is an acceptable way to fix this issue - would love any thoughts on a better way to fix if anyone has ideas!

This has been red for a bit, but I assumed it was superfluous until I saw the error in a downstream project I was working on earlier today.

I don't fully understand why this fixes the error I was seeing, but a) it does and b) I don't see much value in the generic type here.

Pushing this up to start a discussion about whether this is an acceptable way to fix this issue - would love any thoughts on a better way to fix if anyone has ideas!
@travis
Copy link
Member Author

travis commented Oct 10, 2023

fixed in #962

@travis travis closed this Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant