Torleif Berger bedbad7231
fix: 🐛 correct useMeasure typings
When upgrading to v15, I discovered some issues with `useMeasure` forcing me to downgrade to v14 again. Hopefully these changes fixes those issues...

* It was no longer possible to define the ref type, meaning components requiring a certain type of ref would reject it. Fixed this by making the function generic again.
* Previously you _had to_ define the ref type, while in v15 you _couldn't_. Fixed this by giving the generic type a default type of `HTMLElement`.
* The implicit typing of `useMeasureMock` combined with the ternary default export statement made the imported type of `useMeasure` very messy. Fixed this by making the type of `useMeasureMock` explicitly match `useMeasure`.
2020-05-18 14:35:40 +02:00
..
2020-04-01 14:11:28 -07:00
2019-11-04 12:13:26 +03:00
2020-05-16 14:27:33 +02:00
2019-09-04 14:03:26 +03:00
2020-02-15 11:20:01 +01:00
2018-10-29 21:12:26 +01:00
2018-10-29 15:27:51 +01:00
2020-01-12 02:00:24 +05:30
2020-02-15 11:20:01 +01:00
2020-01-17 09:25:26 +01:00
2020-01-18 21:20:05 +03:00
2020-01-16 21:13:35 +05:30
2020-04-08 09:21:06 +03:00
2020-02-29 04:35:23 +03:00
2020-02-15 11:20:01 +01:00
2020-05-18 14:35:40 +02:00
2019-07-16 19:07:39 +10:00
2020-02-15 19:27:26 +05:30
2019-08-24 01:57:29 +03:00
2018-10-29 18:44:25 +01:00
2019-05-07 20:31:22 +10:00
2019-09-22 15:10:27 +03:00
2019-10-16 23:05:50 +11:00
2019-08-24 01:57:29 +03:00
2019-12-27 12:36:05 +01:00
2019-06-30 12:37:00 +02:00
2019-08-22 01:18:40 +03:00
2020-01-17 09:25:26 +01:00
2018-10-29 21:12:26 +01:00
2020-02-15 12:22:06 +01:00