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

[FEAT]: Typed resources #6072

Closed
JuicyBenjamin opened this issue Jun 22, 2024 · 2 comments
Closed

[FEAT]: Typed resources #6072

JuicyBenjamin opened this issue Jun 22, 2024 · 2 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@JuicyBenjamin
Copy link
Contributor

Is your feature request related to a problem? Please describe.

  1. I'm not getting type feedback on whether my type input of a resource is correct.
  2. I'm not getting a return type based on the used resource when using for example "useOne" and have to manually do it.

Describe alternatives you've considered

No response

Additional context

No response

Describe the thing to improve

Would be nice to know that a resource I'm calling exists via types. So I'm getting a type error if I'm calling "product" instead of "products" for example.

This would be the first implementation I'd really enjoy.

A bonus implementation, if even possible would be to automagically type the return type of the resources used, right now I'm manually marking them, this solution does work just fine, but it definitely would be more sleek if I didn't have to.

@JuicyBenjamin JuicyBenjamin added the enhancement New feature or request label Jun 22, 2024
@alicanerdurmaz
Copy link
Member

Hi @JuicyBenjamin, This is a great idea to improve the developer experience 🚀

Copy link

stale bot commented Aug 23, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 23, 2024
@stale stale bot closed this as completed Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants