mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
fix typo on "readOnly" props
This commit is contained in:
Vendored
+10
-4
@@ -1,11 +1,12 @@
|
||||
// Type definitions for react-draft-wysiwyg 1.12
|
||||
// Project: https://github.com/jpuri/react-draft-wysiwyg#readme
|
||||
// Definitions by: imechZhangLY <https://github.com/imechZhangLY>
|
||||
// brunoMaurice <https://github.com/brunoMaurice>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import * as React from 'react';
|
||||
import * as Draft from 'draft-js';
|
||||
import * as React from "react";
|
||||
import * as Draft from "draft-js";
|
||||
|
||||
export type SyntheticKeyboardEvent = React.KeyboardEvent<{}>;
|
||||
export type SyntheticEvent = React.SyntheticEvent<{}>;
|
||||
@@ -51,7 +52,7 @@ export interface EditorProps {
|
||||
mention?: object;
|
||||
hashtag?: object;
|
||||
textAlignment?: string;
|
||||
readonly?: boolean;
|
||||
readOnly?: boolean;
|
||||
tabIndex?: number;
|
||||
placeholder?: string;
|
||||
ariaLabel?: string;
|
||||
@@ -65,7 +66,12 @@ export interface EditorProps {
|
||||
wrapperId?: number;
|
||||
customDecorators?: object[];
|
||||
editorRef?(ref: object): void;
|
||||
handlePastedText?(text: string, html: string, editorState: EditorState, onChange: (editorState: EditorState) => void): boolean;
|
||||
handlePastedText?(
|
||||
text: string,
|
||||
html: string,
|
||||
editorState: EditorState,
|
||||
onChange: (editorState: EditorState) => void
|
||||
): boolean;
|
||||
}
|
||||
|
||||
export class Editor extends React.Component<EditorProps> {
|
||||
|
||||
Reference in New Issue
Block a user