@@ -33,7 +33,7 @@ type RemoveAction = {
3333 snapshot : firebase . database . DataSnapshot | null ;
3434} ;
3535type ResetAction = { type : 'reset' } ;
36- type ValueAction = { type : 'value' ; snapshots : database . DataSnapshot [ ] | null } ;
36+ type ValueAction = { type : 'value' ; snapshots : firebase . database . DataSnapshot [ ] | null } ;
3737type ReducerAction =
3838 | AddAction
3939 | ChangeAction
@@ -126,7 +126,7 @@ const listReducer = (
126126 }
127127} ;
128128
129- const setValue = ( snapshots : database . DataSnapshot [ ] | null ) : KeyValueState => {
129+ const setValue = ( snapshots : firebase . database . DataSnapshot [ ] | null ) : KeyValueState => {
130130 if ( ! snapshots ) {
131131 return {
132132 keys : [ ] ,
@@ -135,7 +135,7 @@ const setValue = (snapshots: database.DataSnapshot[] | null): KeyValueState => {
135135 }
136136
137137 const keys : string [ ] = [ ] ;
138- const values : database . DataSnapshot [ ] = [ ] ;
138+ const values : firebase . database . DataSnapshot [ ] = [ ] ;
139139 snapshots . forEach ( ( snapshot ) => {
140140 if ( ! snapshot . key ) {
141141 return ;
@@ -152,7 +152,7 @@ const setValue = (snapshots: database.DataSnapshot[] | null): KeyValueState => {
152152
153153const addChild = (
154154 currentState : KeyValueState ,
155- snapshot : database . DataSnapshot ,
155+ snapshot : firebase . database . DataSnapshot ,
156156 previousKey ?: string | null
157157) : KeyValueState => {
158158 if ( ! snapshot . key ) {
@@ -182,7 +182,7 @@ const addChild = (
182182
183183const changeChild = (
184184 currentState : KeyValueState ,
185- snapshot : database . DataSnapshot
185+ snapshot : firebase . database . DataSnapshot
186186) : KeyValueState => {
187187 if ( ! snapshot . key ) {
188188 return currentState ;
@@ -199,7 +199,7 @@ const changeChild = (
199199
200200const removeChild = (
201201 currentState : KeyValueState ,
202- snapshot : database . DataSnapshot
202+ snapshot : firebase . database . DataSnapshot
203203) : KeyValueState => {
204204 if ( ! snapshot . key ) {
205205 return currentState ;
@@ -217,7 +217,7 @@ const removeChild = (
217217
218218const moveChild = (
219219 currentState : KeyValueState ,
220- snapshot : database . DataSnapshot ,
220+ snapshot : firebase . database . DataSnapshot ,
221221 previousKey ?: string | null
222222) : KeyValueState => {
223223 // Remove the child from it's previous location
0 commit comments