You can now automatically type the whole PocketBase SDK using the TypedPocketBase type generated by this library 🎉
import { TypedPocketBase } from "./pocketbase-types"
const pb = new PocketBase('http://127.0.0.1:8090') as TypedPocketBase
You need to be using PocketBase SDK v0.18.3+. If using a lower version of PocketBase SDK and v1.2.0 of this package, pass the --no-sdk option for full compatibility.
Thanks to @scriptcoded for quickly adding this.
What's Changed
- Generate typed PocketBase type by @scriptcoded in #82
- Bump @babel/traverse from 7.19.4 to 7.23.2 by @dependabot in #83
New Contributors
- @scriptcoded made their first contribution in #82
Full Changelog: v1.1.13...v1.2.0