Skip to content

Commit ec6eeac

Browse files
committed
updated types
1 parent 02011d8 commit ec6eeac

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

index.d.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,12 +611,20 @@ export type ProfileType = object
611611
export interface Listeners {
612612
allIds: string[]
613613
byId: {
614-
[key: string]: any
614+
[path: string]: {
615+
name: string
616+
}
615617
}
616618
}
617619

618620
export interface Ordered {
619-
[key: string]: any[]
621+
[collection: string]: (FirestoreTypes.DocumentData & { id: string })[]
622+
}
623+
624+
export interface Data {
625+
[collection: string]: {
626+
[documentId: string]: FirestoreTypes.DocumentData
627+
}
620628
}
621629

622630
export namespace firebaseReducer {
@@ -625,7 +633,7 @@ export namespace firebaseReducer {
625633
profile: ProfileType
626634
// profile: Profile
627635
authError: any
628-
data: {}
636+
data: Data
629637
errors: any[]
630638
isInitializing: boolean
631639
listeners: Listeners

0 commit comments

Comments
 (0)