mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Allow typing of RawDraftEntity (#35208)
It's helpful, when working with `RawDraftEntity`, to have a typed `data` property, whilst it still defaults to `{ [key: string]: any }`
This commit is contained in:
parent
353eb17ad6
commit
12c5676b0f
4
types/draft-js/index.d.ts
vendored
4
types/draft-js/index.d.ts
vendored
@ -505,10 +505,10 @@ declare namespace Draft {
|
||||
/**
|
||||
* A plain object representation of an EntityInstance.
|
||||
*/
|
||||
interface RawDraftEntity {
|
||||
interface RawDraftEntity<T = { [key: string]: any }> {
|
||||
type: DraftEntityType;
|
||||
mutability: DraftEntityMutability;
|
||||
data: { [key: string]: any };
|
||||
data: T;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user