You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first off thanks for this lib, it's been a total boone developing for PB with it and I'm grateful it exists.
Something I kludged together for my own use initially but intend to share once a little more polished, complete, and tested is a function which uses the types to return an instance of PB where collections are accessible through dot notation and typed using your output.
I can see that since writing it something similar has been added to pb typegen, and I'm not sure the philosophy of your project would welcome something like this which technically affects runtime behaviour. If not was wondering whether you're fine with this being forked so I could release this separately instead?
It ends up working like this, invoking the pb constructor and returning a typed instance instead:
The text was updated successfully, but these errors were encountered:
Yeah sure feel free to fork it. As mentioned in pocketbase/js-sdk#152 there are low priority plans to have generated types in the official SDK eventually.
Generally I think it's better for a package do 1 thing (type generation in this case) and other packages like yours can build on top of it. Love seeing all the development around pocketbase DX!
Hi, first off thanks for this lib, it's been a total boone developing for PB with it and I'm grateful it exists.
Something I kludged together for my own use initially but intend to share once a little more polished, complete, and tested is a function which uses the types to return an instance of PB where collections are accessible through dot notation and typed using your output.
I can see that since writing it something similar has been added to pb typegen, and I'm not sure the philosophy of your project would welcome something like this which technically affects runtime behaviour. If not was wondering whether you're fine with this being forked so I could release this separately instead?
It ends up working like this, invoking the pb constructor and returning a typed instance instead:
The text was updated successfully, but these errors were encountered: