Skip to content

Commit

Permalink
fix: make FirebaseApp props optional
Browse files Browse the repository at this point in the history
  • Loading branch information
codediodeio committed Jan 8, 2024
1 parent de017c7 commit b78f52d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sveltefire",
"version": "0.4.4",
"version": "0.4.5",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",
Expand Down
10 changes: 5 additions & 5 deletions src/lib/components/FirebaseApp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
</script>
Expand Down

0 comments on commit b78f52d

Please sign in to comment.