Merge pull request #17988 from michael-yx-wu/mw/draft-js

Extend React.Component correctly in draft-js
This commit is contained in:
Ryan Cavanaugh 2017-07-12 16:26:10 -07:00 committed by GitHub
commit 444664dd77
2 changed files with 5 additions and 4 deletions

View File

@ -4,6 +4,7 @@
// Eelco Lempsink <https://github.com/eelco>
// Yale Cason <https://github.com/ghotiphud>
// Ryan Schwers <https://github.com/schwers>
// Michael Wu <https://github.com/michael-yx-wu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@ -37,7 +38,7 @@ declare namespace Draft {
* div, and provides a wide variety of useful function props for managing the
* state of the editor. See `DraftEditorProps` for details.
*/
class DraftEditor extends React.Component<DraftEditorProps> {
class DraftEditor extends React.Component<DraftEditorProps, {}> {
// Force focus back onto the editor node.
focus(): void;
// Remove focus from the editor node.
@ -162,7 +163,7 @@ declare namespace Draft {
}
namespace Components {
class DraftEditorBlock extends React.Component<any> {
class DraftEditorBlock extends React.Component<any, {}> {
}
}

View File

@ -1,5 +1,5 @@
{
"dependencies": {
"immutable": "^3.8.1"
"immutable": "^3.8.1"
}
}
}