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

Rework api for better TypeScript support and overall simplicity #22

Open
5 tasks
Amareis opened this issue Mar 12, 2022 · 1 comment
Open
5 tasks

Rework api for better TypeScript support and overall simplicity #22

Amareis opened this issue Mar 12, 2022 · 1 comment

Comments

@Amareis
Copy link
Owner

Amareis commented Mar 12, 2022

  • Replace custom shortcuts with some inline field which can be inferred by TS (and maybe remove disabling standard shortcuts at all)
    api.res({'some-field: {SHORTCUT: 'someField}}).someField.get()
  • Remove res completely or make it working just like withRes
  • Remove cloning all resources when id is passing - need prev item to be done first
  • Maybe add some possibility to add types for api response (or runtime typechecking with existing libs)
  • Think about Support for blob (or any other) response type #12
@vixalien
Copy link

I think using fetch is a plus

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

No branches or pull requests

2 participants