Здесь указана Flow , повторяется ниже.
export type RawDraftContentState = {
blocks: Array<RawDraftContentBlock>,
entityMap: {[key: string]: RawDraftEntity, ...},
};
export type RawDraftContentBlock = {
key: ?string,
type: DraftBlockType,
text: string,
depth: ?number,
inlineStyleRanges: ?Array<InlineStyleRange>,
entityRanges: ?Array<EntityRange>,
data?: Object,
children?: Array<RawDraftContentBlock>,
...
};
export type RawDraftEntity = {
type: DraftEntityType,
mutability: DraftEntityMutability,
data: ?{[key: string]: any, ...},
...
};