mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
282 B
TypeScript
10 lines
282 B
TypeScript
import htmlToDraft from 'html-to-draftjs';
|
|
import { ContentBlock } from 'draft-js';
|
|
|
|
const blocksFromHtml = htmlToDraft('<p>test</p>');
|
|
|
|
// $ExpectType ContentBlock[]
|
|
const contentBlocks = blocksFromHtml.contentBlocks;
|
|
// $ExpectType any
|
|
const entityMap = blocksFromHtml.entityMap;
|