Skip to content

Commit 56549f1

Browse files
authored
fix(esm): fix any type (#1317)
* Fix any type * Return ts-expect-error * Fix linter issues
1 parent 2a749ac commit 56549f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esm/index.d.mts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import HTMLReactParser from '../lib/index.js';
33
export * from '../lib/index.js';
44

55
// @ts-expect-error Property 'default' exists on type
6-
export default HTMLReactParser.default || HTMLReactParser;
6+
export default (HTMLReactParser.default as typeof HTMLReactParser) ??
7+
HTMLReactParser;

0 commit comments

Comments
 (0)