UNPKG

convert-draftjs

Version:

Easily convert the result of DraftJS into useful and easy to read data. For example; Array of text, plain text, etc.

14 lines (13 loc) 253 B
export interface Block { key: string; text: string; type: string; depth: number; inlineStyleRanges: any[]; entityRanges: any[]; data: {}; } export interface ParsedJson { blocks: Block[]; entityMap: {}; }