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

Missing Create and Update types #110

Open
ivanpajon opened this issue Dec 24, 2024 · 0 comments
Open

Missing Create and Update types #110

ivanpajon opened this issue Dec 24, 2024 · 0 comments

Comments

@ivanpajon
Copy link

ivanpajon commented Dec 24, 2024

Describe the bug
I started using this library recently and I really miss the generated types for Create and Update requests.
Generated types for Record can't be used in this requests.
For example:

  • To update any collection all of its fields are optional
  • Fields of type "file" requires a "File" type for Create and Update, not a string
  • Password fields are missing for updating a record in Auth collection
  • Password fields are missing for create a record in Auth collection, also id is optional not required

I'm working on a Pull Request to implement types generation for Create and Update requests.

Versions
pocketbase-typegen version: 1.3.0
pocketbase version: 0.23.x

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

1 participant