Skip to content

Commit dfdee4a

Browse files
Fix type references
1 parent 048dcb4 commit dfdee4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

database/helpers/useListReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const listReducer = (
127127

128128
const addChild = (
129129
currentState: KeyValueState,
130-
snapshot: firebase.database.DataSnapshot,
130+
snapshot: database.DataSnapshot,
131131
previousKey?: string | null
132132
): KeyValueState => {
133133
if (!snapshot.key) {
@@ -157,7 +157,7 @@ const addChild = (
157157

158158
const changeChild = (
159159
currentState: KeyValueState,
160-
snapshot: firebase.database.DataSnapshot
160+
snapshot: database.DataSnapshot
161161
): KeyValueState => {
162162
if (!snapshot.key) {
163163
return currentState;
@@ -174,7 +174,7 @@ const changeChild = (
174174

175175
const removeChild = (
176176
currentState: KeyValueState,
177-
snapshot: firebase.database.DataSnapshot
177+
snapshot: database.DataSnapshot
178178
): KeyValueState => {
179179
if (!snapshot.key) {
180180
return currentState;
@@ -192,7 +192,7 @@ const removeChild = (
192192

193193
const moveChild = (
194194
currentState: KeyValueState,
195-
snapshot: firebase.database.DataSnapshot,
195+
snapshot: database.DataSnapshot,
196196
previousKey?: string | null
197197
): KeyValueState => {
198198
// Remove the child from it's previous location

0 commit comments

Comments
 (0)