diff --git a/packages/react-hooks/src/useSubscription.js b/packages/react-hooks/src/useSubscription.js index 0a5a2da8a6a0a..8a564c8a180e9 100644 --- a/packages/react-hooks/src/useSubscription.js +++ b/packages/react-hooks/src/useSubscription.js @@ -29,7 +29,7 @@ export function useSubscription({ source: Source, getCurrentValue: (source: Source) => Value, subscribe: (source: Source, callback: Function) => () => void, -|}) { +|}): Value { // Read the current value from our subscription source. // When this value changes, we'll schedule an update with React. // It's important to also store the source itself so that we can check for staleness.