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.

4 lines (3 loc) 205 B
import { ParsedJson } from '../types/parsedjson'; import { Options } from '../types/options'; export default function convertDraftToArray(draftResult: ParsedJson | string, options?: Options): string[];