Skip to content

Commit

Permalink
fix(hooks): remove useCounter typeof and use as const (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pochodaydayup authored and u3u committed Nov 2, 2019
1 parent 7ecb326 commit 721dfff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useCounter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export default function useCounter(initialValue = 0) {
};
const actions = { inc, dec, get, set, reset };

return [count, actions] as [typeof count, typeof actions];
return [count, actions] as const;
}

0 comments on commit 721dfff

Please sign in to comment.