Skip to content

Commit

Permalink
fix: proper definition for useMeasure
Browse files Browse the repository at this point in the history
  • Loading branch information
meowtec committed Jan 31, 2021
1 parent f4153fb commit 1461527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useMeasure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ function useMeasure<E extends HTMLElement = HTMLElement>(): UseMeasureResult<E>

export default isBrowser && typeof (window as any).ResizeObserver !== 'undefined'
? useMeasure
: () => [noop, defaultState];
: (() => [noop, defaultState]) as typeof useMeasure;

0 comments on commit 1461527

Please sign in to comment.