mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
4
types/draft-js/index.d.ts
vendored
4
types/draft-js/index.d.ts
vendored
@@ -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> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user