Skip to content

Commit

Permalink
Add return type to useSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Mar 11, 2019
1 parent a4ce2f4 commit 140cdb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-hooks/src/useSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function useSubscription<Value, Source>({
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.
Expand Down

0 comments on commit 140cdb8

Please sign in to comment.