mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for draftjs-to-html * Add types for draftjs-to-html: remove excess blank line * Add types for draftjs-to-html: change function export
22 lines
357 B
TypeScript
22 lines
357 B
TypeScript
import draftToHtml from 'draftjs-to-html';
|
|
|
|
const editorContent = {
|
|
blocks: [
|
|
{
|
|
key: '355iu',
|
|
text: 'test',
|
|
type: 'unstyled',
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {
|
|
'text-align': 'center',
|
|
},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
};
|
|
|
|
// $ExpectType string
|
|
draftToHtml(editorContent);
|