Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
patmood committed Oct 25, 2022
1 parent 7bb8660 commit 828332d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ Using the [pocketbase SDK](https://github.com/pocketbase/js-sdk) (v0.8.x onwards
```typescript
import type { Collections, ProfilesRecord } from "./path/to/pocketbase-types.ts"
const result = (await client.records.getList)<ProfilesRecord>(
Collections.Profiles,
1,
50
)
await client.records.getList<ProfilesRecord>(Collections.Profiles, 1, 50)
```

Now the `result` of the data fetch will be accurately typed throughout your codebase!

0 comments on commit 828332d

Please sign in to comment.