Skip to content

Commit

Permalink
adding-missing-type-definition-to-blockrendermap - Adding missing typ…
Browse files Browse the repository at this point in the history
…e for DefaultBlockRenderMap (facebookarchive#831)
  • Loading branch information
mitermayer authored and ouchxp committed Apr 7, 2017
1 parent b024b1d commit 0108853
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/model/immutable/DefaultDraftBlockRenderMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

'use strict';

import type {DraftBlockRenderMap} from 'DraftBlockRenderMap';

const {Map} = require('immutable');
const React = require('React');

Expand All @@ -21,7 +23,7 @@ const UL_WRAP = <ul className={cx('public/DraftStyleDefault/ul')} />;
const OL_WRAP = <ol className={cx('public/DraftStyleDefault/ol')} />;
const PRE_WRAP = <pre className={cx('public/DraftStyleDefault/pre')} />;

module.exports = Map({
const DefaultDraftBlockRenderMap: DraftBlockRenderMap = Map({
'header-one': {
element: 'h1',
},
Expand Down Expand Up @@ -63,3 +65,5 @@ module.exports = Map({
aliasedElements: ['p'],
},
});

module.exports = DefaultDraftBlockRenderMap;

0 comments on commit 0108853

Please sign in to comment.