Skip to content

Commit

Permalink
fix: omit type of el option in react wrapper (fix #841) (#856)
Browse files Browse the repository at this point in the history
* fix: omit type of el option in react wrapper (fix #841)

* feat: remove type of html attribute
  • Loading branch information
seonim-ryu committed Mar 30, 2020
1 parent 4c4807a commit a2eb9c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/react-editor/index.d.ts
Expand Up @@ -2,8 +2,8 @@ import { HTMLAttributes, Component } from 'react';
import ToastuiEditor, { EditorOptions } from '@toast-ui/editor';
import ToastuiEditorViewer, { ViewerOptions } from '@toast-ui/editor/dist/toastui-editor-viewer';

type EditorProps = EditorOptions & HTMLAttributes<HTMLElement>;
type ViewerProps = ViewerOptions & HTMLAttributes<HTMLElement>;
type EditorProps = Omit<EditorOptions, 'el'>;
type ViewerProps = Omit<ViewerOptions, 'el'>;

export class Editor extends Component<EditorProps> {
public getInstance(): ToastuiEditor;
Expand All @@ -13,4 +13,4 @@ export class Editor extends Component<EditorProps> {
export class Viewer extends Component<ViewerProps> {
public getInstance(): ToastuiEditorViewer;
public getRootElement(): HTMLElement;
}
}

0 comments on commit a2eb9c3

Please sign in to comment.