I'd like to define types of things in my firebase repo. DataSnapshot.val() returns any.
call .val on a DataSnapshot
interface DataSnapshot<S> {
child(path: string): firebase.database.DataSnapshot<any>;
exists(): boolean;
exportVal(): S;
forEach(action: (a: firebase.database.DataSnapshot<S>) => boolean): boolean;
getPriority(): string | number | null;
hasChild(path: string): boolean;
hasChildren(): boolean;
key: string | null;
numChildren(): number;
ref: firebase.database.Reference;
toJSON(): Object | null;
val(): S;
}
Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information.
This seems like a great potential PR!
Most helpful comment
This seems like a great potential PR!