Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>

+ many manual adjustments
This commit is contained in:
Tanguy Krotoff
2017-06-19 11:59:46 +02:00
parent 1745cc3b4c
commit ea9de8a518
258 changed files with 828 additions and 828 deletions

View File

@@ -183,7 +183,7 @@ function getBlockStyle(block: ContentBlock) {
}
}
class StyleButton extends React.Component<{key: string, active: boolean, label: string, onToggle: (blockType: string) => void, style: string}, {}> {
class StyleButton extends React.Component<{key: string, active: boolean, label: string, onToggle: (blockType: string) => void, style: string}> {
constructor() {
super();
}

View File

@@ -37,7 +37,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, any> {
class DraftEditor extends React.Component<DraftEditorProps> {
// Force focus back onto the editor node.
focus(): void;
// Remove focus from the editor node.
@@ -162,7 +162,7 @@ declare namespace Draft {
}
namespace Components {
class DraftEditorBlock extends React.Component<any, any> {
class DraftEditorBlock extends React.Component<any> {
}
}