david-plugge / typed-pocketbase

Add types to the PocketBase JavaScript SDK
MIT License
85 stars 10 forks source link

Codegen: Fixed URL resolution and added most types #4

Closed gBasil closed 1 year ago

gBasil commented 1 year ago

Fixes:

The json and select schemas (as per https://pocketbase.io/docs/collections/#overview) are still unimplemented.

gBasil commented 1 year ago

I also had to change "module": "./dist/client/index.mjs", to "module": "./dist/client/index.js", in package.json, but I'm not sure if this is the best solution, given you have .mjs in there, so it's not in this PR.

david-plugge commented 1 year ago

I also had to change "module": "./dist/client/index.mjs", to "module": "./dist/client/index.js", in package.json, but I'm not sure if this is the best solution, given you have .mjs in there, so it's not in this PR.

Your change is correct, i added "type": "module" but forgot to update the entrypoints.

david-plugge commented 1 year ago

Thank you!

david-plugge commented 1 year ago

0.0.3-next.3 now includes all types and even supports modifiers for select, relation and file columns (according to https://pocketbase.io/docs/collections/#overview).