Skip to content

Commit

Permalink
Add proper return type to store
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins committed Dec 24, 2020
1 parent 15d5606 commit 7e4391d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const defaultTimeouts: {
loading: 30000,
};

export const useStore = (toastOptions: DefaultToastOptions = {}) => {
export const useStore = (toastOptions: DefaultToastOptions = {}): State => {
const [state, setState] = useState<State>(memoryState);
useEffect(() => {
listeners.push(setState);
Expand Down

1 comment on commit 7e4391d

@vercel
Copy link

@vercel vercel bot commented on 7e4391d Dec 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.