Skip to content

Commit c3a237b

Browse files
committed
refactor: merge useDocument and useCollection
1 parent 0df8731 commit c3a237b

File tree

5 files changed

+303
-308
lines changed

5 files changed

+303
-308
lines changed

src/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ export function callOnceWithArg<T, K>(
116116
/**
117117
* @internal
118118
*/
119-
export interface _RefWithState<T> extends Ref<T> {
119+
export interface _RefWithState<T, E = Error> extends Ref<T> {
120120
get data(): Ref<T>
121-
get error(): Ref<Error | undefined>
121+
get error(): Ref<E | undefined>
122122
get pending(): Ref<boolean>
123123

124124
// TODO: is it really void?

0 commit comments

Comments
 (0)