mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
* Fix setRouteLeaveHook signature router.setRouteLeaveHook() should return a function that unbinds the listener. @see [react-router v3 API](https://github.com/ReactTraining/react-router/blob/v3/docs/API.md#setrouteleavehookroute-hook) @see [react-router v3 Implementation: router object](https://github.com/ReactTraining/react-router/blob/v3/modules/RouterUtils.js#L4) @see [react-router v3 lsitenBeforeLeavingRoute](https://github.com/ReactTraining/react-router/blob/v3/modules/createTransitionManager.js#L204-L206) * Add setRouteLeaveHook return type test * Fix lint for react-router-tests.tsx Co-authored-by: Johnson Liang <johnson.liang@appier.com> |
||
|---|---|---|
| .. | ||
| test | ||
| v2 | ||
| v3 | ||
| index.d.ts | ||
| tsconfig.json | ||
| tslint.json | ||