react-pdf: Add children to Document component Props (#37391)

This commit is contained in:
Nathan Hardy
2019-08-06 09:00:51 -07:00
committed by Nathan Shively-Sanders
parent 93013898d7
commit 707083acb9
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -105,6 +105,8 @@ export interface Props {
* 90 = rotated to the right, 180 = upside down, 270 = rotated to the left.
*/
rotate?: number;
children?: React.ReactNode;
}
export default class Document extends React.Component<Props> { }
+1
View File
@@ -1,6 +1,7 @@
// Type definitions for react-pdf 4.0
// Project: https://github.com/wojtekmaj/react-pdf/
// Definitions by: CodeDaraW <https://github.com/CodeDaraW>
// Nathan Hardy <https://github.com/nhardy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8