patmood / pocketbase-typegen

Typescript generation for pocketbase records
https://www.npmjs.com/package/pocketbase-typegen
512 stars 16 forks source link

UserResponse is never #94

Open Brentlok opened 8 months ago

Brentlok commented 8 months ago

Describe the bug When you don't have any additional fields in Users collection, the UsersRecord will be typed as never, and with that UsersResponse will also be typed as never

image

In my opinion this is incorrect behavior, because in fact user will have AuthSystemFields

Versions pocketbase-typegen version: 1.2.1 pocketbase version: 0.20.7

patmood commented 7 months ago

Thanks I think this is related to https://github.com/patmood/pocketbase-typegen/issues/97 and I will fix soon