Skip to content

Commit 15c084f

Browse files
committed
Tweak flow types
1 parent c935b2e commit 15c084f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

database/index.js.flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { DataSnapshot, Query } from 'firebase/database';
33

44
export type ListHook = {
55
error?: Object;
6-
list: DataSnapshot[];
76
loading: boolean;
7+
value: DataSnapshot[];
88
};
99
export type ObjectHook = {
1010
error?: object;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-firebase-hooks",
3-
"version": "0.3.0-alpha.10",
3+
"version": "0.3.0-alpha.11",
44
"description": "React Hooks for Firebase",
55
"author": "CS Frequency Limited (https://csfrequency.com)",
66
"license": "Apache-2.0",

storage/index.js.flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import type { Reference } from 'firebase/storage';
44
export type DownloadURLHook = {
55
error?: object;
66
loading: boolean;
7-
url?: string;
7+
value?: string;
88
};
99
declare export function useDownloadURL(ref: Reference): DownloadURLHook;

0 commit comments

Comments
 (0)