Skip to content

Commit

Permalink
pocketbase: use TypedPocketBase
Browse files Browse the repository at this point in the history
  • Loading branch information
LilleAila committed Nov 28, 2024
1 parent c3d4972 commit 1991f96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/pocketbase/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import PocketBase from "pocketbase";
import { PUBLIC_PB_HOST } from "$env/static/public";
import type { TypedPocketBase } from "$lib/pb-types";

const pb = new PocketBase(PUBLIC_PB_HOST);
const pb = new PocketBase(PUBLIC_PB_HOST) as TypedPocketBase;
pb.autoCancellation(false);

export default pb;

0 comments on commit 1991f96

Please sign in to comment.