mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #21873 from richardtagger/update-draftjs-applyentity
[draftjs] Update CharacterMetadata.applyEntity and Modifier.applyEntity
This commit is contained in:
Vendored
+2
-2
@@ -797,7 +797,7 @@ declare namespace Draft {
|
||||
class CharacterMetadata {
|
||||
static applyStyle(record: CharacterMetadata, style: string): CharacterMetadata;
|
||||
static removeStyle(record: CharacterMetadata, style: string): CharacterMetadata;
|
||||
static applyEntity(record: CharacterMetadata, entityKey: string): CharacterMetadata;
|
||||
static applyEntity(record: CharacterMetadata, entityKey: string | null): CharacterMetadata;
|
||||
static applyEntity(record: CharacterMetadata): CharacterMetadata;
|
||||
/**
|
||||
* Use this function instead of the `CharacterMetadata` constructor.
|
||||
@@ -894,7 +894,7 @@ declare namespace Draft {
|
||||
|
||||
static setBlockData(contentState: ContentState, selectionState: SelectionState, blockData: Immutable.Map<any, any>): ContentState;
|
||||
static mergeBlockData(contentState: ContentState, selectionState: SelectionState, blockData: Immutable.Map<any, any>): ContentState;
|
||||
static applyEntity(contentState: ContentState, selectionState: SelectionState, entityKey: string): ContentState;
|
||||
static applyEntity(contentState: ContentState, selectionState: SelectionState, entityKey: string | null): ContentState;
|
||||
}
|
||||
|
||||
class RichTextEditorUtil {
|
||||
|
||||
Reference in New Issue
Block a user