Skip to content

Commit a470844

Browse files
committed
Fix TS generating broken types
1 parent 0570acf commit a470844

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/index.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ import {modifyChildren} from 'unist-util-modify-children'
88
/**
99
* Merge emoticons in `node` into `EmoticonNode`s.
1010
*
11-
* @param node
11+
* @param {Paragraph} node
1212
* nlcst paragraph to transform.
13-
* @returns
13+
* @returns {undefined}
1414
* Nothing.
1515
*/
16-
export const affixEmoticonModifier = modifyChildren(mergeAffixEmoticon)
16+
export function affixEmoticonModifier(node) {
17+
modifier(node)
18+
}
19+
20+
const modifier = modifyChildren(mergeAffixEmoticon)
1721

1822
/**
1923
* Merge emoticons into an `EmoticonNode`.

0 commit comments

Comments
 (0)