diff --git a/package.json b/package.json index 4f6dc60..ce3a0ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sveltefire", - "version": "0.4.4", + "version": "0.4.5", "scripts": { "dev": "vite dev", "build": "vite build && npm run package", diff --git a/src/lib/components/FirebaseApp.svelte b/src/lib/components/FirebaseApp.svelte index 694f517..f85f968 100644 --- a/src/lib/components/FirebaseApp.svelte +++ b/src/lib/components/FirebaseApp.svelte @@ -6,11 +6,11 @@ import type { FirebaseStorage } from "firebase/storage"; import type { Analytics } from "firebase/analytics"; - export let firestore: Firestore; - export let rtdb: Database; - export let auth: Auth; - export let storage: FirebaseStorage; - export let analytics: Analytics | null; + export let firestore: Firestore | undefined = undefined; + export let rtdb: Database | undefined = undefined; + export let auth: Auth | undefined = undefined; + export let storage: FirebaseStorage | undefined = undefined; + export let analytics: Analytics | undefined = undefined; setFirebaseContext({ firestore, rtdb, auth, storage, analytics });