From b78f52dce8e188fb87d9494fb7631150cc5139b7 Mon Sep 17 00:00:00 2001 From: codediodeio Date: Mon, 8 Jan 2024 08:27:00 -0700 Subject: [PATCH] fix: make FirebaseApp props optional --- package.json | 2 +- src/lib/components/FirebaseApp.svelte | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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 });