Skip to content

Commit 5765a48

Browse files
committed
added type with id
1 parent 3fb5f72 commit 5765a48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,10 @@ export interface Listeners {
614614
}
615615
}
616616

617+
export type TypeWithId<T> = T & { id: string }
618+
617619
export interface Ordered<T extends FirestoreTypes.DocumentData> {
618-
[collection: string]: (T & { id: string })[]
620+
[collection: string]: TypeWithId<T>[]
619621
}
620622

621623
export interface Dictionary<T> {

0 commit comments

Comments
 (0)