Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#23971 from petitspois/braft-editor
Browse files Browse the repository at this point in the history
[braft-editor]Modify the contentFormat and initialContent types
  • Loading branch information
armanio123 authored Mar 8, 2018
2 parents ce574eb + 1de3b59 commit 6bbe8ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion types/braft-editor/braft-editor-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class BraftEditorTest extends React.Component<BraftEditor.editorProps> {
height: 500,
initialContent: this.state.content,
onChange: this.handleChange,
onHTMLChange: this.handleHTMLChange
onHTMLChange: this.handleHTMLChange,
};
return (
<div>
Expand Down
4 changes: 2 additions & 2 deletions types/braft-editor/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ declare namespace BraftEditor {
}
interface editorProps {
editorState?: any;
contentFormat?: RawDraftContentState;
initialContent?: RawDraftContentState | null;
contentFormat?: 'raw' | 'html';
initialContent?: string | null;
onChange?: (content: RawDraftContentState) => void;
onRawChange?: (content: RawDraftContentState) => void;
onHTMLChange?: (content: string) => void;
Expand Down

0 comments on commit 6bbe8ff

Please sign in to comment.