DefinitelyTyped/types/react-beforeunload
Nemanja Stojanovic f393e617ac Add types for react-beforeunload (#36380)
* 🎉 add types for `react-beforeunload`

* 🐛 [react-beforeunload] - fix broken tests from travis-ci (add `dom` for compiler `lib` option and duplicate `Handler` type because of https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md)

* [react-beforeunload] make the handler and its `event` argument optional

* [react-beforeunload] only make the hook handler optional

Only make the hook handler optional (but not the event!)

* [react-beforeunload] add noop hook test case

* [react-beforeunload] oops, fix lint error :)

* [react-beforeunload] add appropriate `undefined` return type

* [react-beforeunload] split types semantically by function signatures

* [react-beforeunload] fix typo
2019-06-28 08:34:14 -07:00
..
index.d.ts
react-beforeunload-tests.tsx
tsconfig.json
tslint.json