mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-31 05:57:33 +00:00
Merge pull request #17988 from michael-yx-wu/mw/draft-js
Extend React.Component correctly in draft-js
This commit is contained in:
commit
444664dd77
5
types/draft-js/index.d.ts
vendored
5
types/draft-js/index.d.ts
vendored
@ -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, {}> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"immutable": "^3.8.1"
|
||||
"immutable": "^3.8.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user