@vueuse/firebase 9.9.0 → 9.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -51,8 +51,8 @@ interface UseFirestoreOptions {
51
51
  errorHandler?: (err: Error) => void;
52
52
  autoDispose?: boolean;
53
53
  }
54
- declare type FirebaseDocRef<T> = Query<T> | DocumentReference<T>;
55
- declare type Falsy = false | 0 | '' | null | undefined;
54
+ type FirebaseDocRef<T> = Query<T> | DocumentReference<T>;
55
+ type Falsy = false | 0 | '' | null | undefined;
56
56
  declare function useFirestore<T extends DocumentData>(maybeDocRef: MaybeRef<DocumentReference<T> | Falsy>, initialValue: T, options?: UseFirestoreOptions): Ref<T | null>;
57
57
  declare function useFirestore<T extends DocumentData>(maybeDocRef: MaybeRef<Query<T> | Falsy>, initialValue: T[], options?: UseFirestoreOptions): Ref<T[]>;
58
58
  declare function useFirestore<T extends DocumentData>(maybeDocRef: MaybeRef<DocumentReference<T> | Falsy>, initialValue?: T | undefined | null, options?: UseFirestoreOptions): Ref<T | undefined | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueuse/firebase",
3
- "version": "9.9.0",
3
+ "version": "9.11.0",
4
4
  "description": "Enables realtime bindings for Firebase",
5
5
  "author": "Anthony Fu <https://github.com/antfu>",
6
6
  "license": "MIT",
@@ -54,7 +54,7 @@
54
54
  "firebase": ">=9.0.0"
55
55
  },
56
56
  "dependencies": {
57
- "@vueuse/shared": "9.9.0",
57
+ "@vueuse/shared": "9.11.0",
58
58
  "vue-demi": "*"
59
59
  }
60
60
  }
package/useFirestore.d.ts CHANGED
@@ -6,8 +6,8 @@ interface UseFirestoreOptions {
6
6
  errorHandler?: (err: Error) => void;
7
7
  autoDispose?: boolean;
8
8
  }
9
- declare type FirebaseDocRef<T> = Query<T> | DocumentReference<T>;
10
- declare type Falsy = false | 0 | '' | null | undefined;
9
+ type FirebaseDocRef<T> = Query<T> | DocumentReference<T>;
10
+ type Falsy = false | 0 | '' | null | undefined;
11
11
  declare function useFirestore<T extends DocumentData>(maybeDocRef: MaybeRef<DocumentReference<T> | Falsy>, initialValue: T, options?: UseFirestoreOptions): Ref<T | null>;
12
12
  declare function useFirestore<T extends DocumentData>(maybeDocRef: MaybeRef<Query<T> | Falsy>, initialValue: T[], options?: UseFirestoreOptions): Ref<T[]>;
13
13
  declare function useFirestore<T extends DocumentData>(maybeDocRef: MaybeRef<DocumentReference<T> | Falsy>, initialValue?: T | undefined | null, options?: UseFirestoreOptions): Ref<T | undefined | null>;