mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 05:27:30 +00:00
@types/draft-js fix mixed immutable version problem (#36402)
* @types/draft-js fix mixed immutable version problem * bump typescript version for draft dependents
This commit is contained in:
parent
1fce2f26d6
commit
bd40cfc005
3
types/braft-editor/index.d.ts
vendored
3
types/braft-editor/index.d.ts
vendored
@ -1,8 +1,9 @@
|
||||
// Type definitions for braft-editor 1.9
|
||||
// Project: https://github.com/margox/braft#readme
|
||||
// Definitions by: Jonny Yao <https://github.com/petitspois>
|
||||
// Munif Tanjim <https://github.com/MunifTanjim>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
// TypeScript Version: 2.9
|
||||
|
||||
import * as React from "react";
|
||||
import { RawDraftContentState } from 'draft-js';
|
||||
|
||||
3
types/draft-convert/index.d.ts
vendored
3
types/draft-convert/index.d.ts
vendored
@ -1,8 +1,9 @@
|
||||
// Type definitions for draft-convert v2.1.5
|
||||
// Project: https://github.com/HubSpot/draft-convert
|
||||
// Definitions by: Agustin Valeriani <https://github.com/avaleriani/>
|
||||
// Munif Tanjim <https://github.com/MunifTanjim>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
// TypeScript Version: 2.9
|
||||
|
||||
// Based on: https://github.com/HubSpot/draft-convert/issues/107#issuecomment-488581709 by <https://github.com/sbusch>
|
||||
declare module 'draft-convert' {
|
||||
|
||||
2
types/draft-js/index.d.ts
vendored
2
types/draft-js/index.d.ts
vendored
@ -13,7 +13,7 @@
|
||||
// Kevin Hawkinson <https://github.com/khawkinson>
|
||||
// Munif Tanjim <https://github.com/MunifTanjim>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
// TypeScript Version: 2.9
|
||||
|
||||
import * as React from 'react';
|
||||
import * as Immutable from 'immutable';
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"immutable": "^3.8.1"
|
||||
"immutable": "~3.7.4"
|
||||
}
|
||||
}
|
||||
|
||||
10
types/react-draft-wysiwyg/index.d.ts
vendored
10
types/react-draft-wysiwyg/index.d.ts
vendored
@ -3,8 +3,9 @@
|
||||
// Definitions by: imechZhangLY <https://github.com/imechZhangLY>
|
||||
// brunoMaurice <https://github.com/brunoMaurice>
|
||||
// ldanet <https://github.com/ldanet>
|
||||
// Munif Tanjim <https://github.com/MunifTanjim>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
// TypeScript Version: 2.9
|
||||
|
||||
import * as React from 'react';
|
||||
import * as Draft from 'draft-js';
|
||||
@ -67,7 +68,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> {
|
||||
|
||||
3
types/react-rte/index.d.ts
vendored
3
types/react-rte/index.d.ts
vendored
@ -1,8 +1,9 @@
|
||||
// Type definitions for react-rte 0.16
|
||||
// Project: https://github.com/sstur/react-rte
|
||||
// Definitions by: jclyons52 <https://github.com/jclyons52>
|
||||
// Munif Tanjim <https://github.com/MunifTanjim>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
// TypeScript Version: 2.9
|
||||
|
||||
import { Component, ReactNode } from "react";
|
||||
import { ContentBlock, EditorState } from "draft-js";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user