We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fece76e commit d231a75Copy full SHA for d231a75
src/database/utils.ts
@@ -1,6 +1,6 @@
1
import { isObject } from '../shared'
2
import type { DataSnapshot } from 'firebase/database'
3
-import type { _RefWithState } from '../shared'
+import type { _RefWithState, _Simplify } from '../shared'
4
5
/**
6
* Convert firebase Database snapshot of a ref **that exists** into a bindable data record.
@@ -67,5 +67,5 @@ export type VueDatabaseDocumentData<T = unknown> =
67
* Same as VueDatabaseDocumentData but for a query.
68
*/
69
export type VueDatabaseQueryData<T = unknown> = Array<
70
- NonNullable<VueDatabaseDocumentData<T>>
+ _Simplify<NonNullable<VueDatabaseDocumentData<T>>>
71
>
0 commit comments