DefinitelyTyped/types/react-document-title
Michael Rochlin 31dadd46f9
Add typing for children of react-document-title (#43022)
* Add typing for children of react-document-title

react-document-title uses React.Children.only to get the only child, and raises an error if more than one child is passed.

https://github.com/gaearon/react-document-title/blob/master/index.js#L31

* Add a test case with a child

* Turns out it should be React.ReactChild

Turns out it should be React.ReactChild

* Fix typo
2020-03-22 14:28:19 -07:00
..
index.d.ts
react-document-title-tests.tsx
tsconfig.json
tslint.json