From 901587f71fec2d696a96c236f4252f51940e9b5e Mon Sep 17 00:00:00 2001 From: M0Bruno Date: Thu, 10 Jan 2019 00:18:28 +0100 Subject: [PATCH 1/2] fix typo on "readOnly" props --- types/react-draft-wysiwyg/index.d.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/types/react-draft-wysiwyg/index.d.ts b/types/react-draft-wysiwyg/index.d.ts index a5c6e07065..938cd236ee 100644 --- a/types/react-draft-wysiwyg/index.d.ts +++ b/types/react-draft-wysiwyg/index.d.ts @@ -1,11 +1,12 @@ // Type definitions for react-draft-wysiwyg 1.12 // Project: https://github.com/jpuri/react-draft-wysiwyg#readme // Definitions by: imechZhangLY +// 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 { From 1364dee3e6ac5129d493c84dc72fb8be59b419b6 Mon Sep 17 00:00:00 2001 From: M0Bruno Date: Thu, 10 Jan 2019 10:15:30 +0100 Subject: [PATCH 2/2] apply lint --- types/react-draft-wysiwyg/index.d.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/types/react-draft-wysiwyg/index.d.ts b/types/react-draft-wysiwyg/index.d.ts index 938cd236ee..7b9b3577d8 100644 --- a/types/react-draft-wysiwyg/index.d.ts +++ b/types/react-draft-wysiwyg/index.d.ts @@ -5,8 +5,8 @@ // 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<{}>; @@ -66,12 +66,7 @@ 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 {