Skip to content

Commit d231a75

Browse files
committed
types: use simplify
1 parent fece76e commit d231a75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/database/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { isObject } from '../shared'
22
import type { DataSnapshot } from 'firebase/database'
3-
import type { _RefWithState } from '../shared'
3+
import type { _RefWithState, _Simplify } from '../shared'
44

55
/**
66
* Convert firebase Database snapshot of a ref **that exists** into a bindable data record.
@@ -67,5 +67,5 @@ export type VueDatabaseDocumentData<T = unknown> =
6767
* Same as VueDatabaseDocumentData but for a query.
6868
*/
6969
export type VueDatabaseQueryData<T = unknown> = Array<
70-
NonNullable<VueDatabaseDocumentData<T>>
70+
_Simplify<NonNullable<VueDatabaseDocumentData<T>>>
7171
>

0 commit comments

Comments
 (0)