Skip to content

fix(types): fix Type error: ',' expected. in index.d.ts#879

Merged
remarkablemark merged 1 commit intomasterfrom
fix/types
Mar 24, 2023
Merged

fix(types): fix Type error: ',' expected. in index.d.ts#879
remarkablemark merged 1 commit intomasterfrom
fix/types

Conversation

@remarkablemark
Copy link
Copy Markdown
Owner

What is the motivation for this pull request?

fix(types): fix Type error: ',' expected. in index.d.ts

Fixes #871

What is the current behavior?

Some TypeScript users are getting the error:

../../node_modules/html-react-parser/index.d.ts:10:8
Type error: ',' expected.

This is caused by module and type imports from 'domhandler' being combined into one.

What is the new behavior?

Separated module and type imports.

Checklist:

@remarkablemark remarkablemark added the bug Something isn't working label Mar 24, 2023
@remarkablemark remarkablemark self-assigned this Mar 24, 2023
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/html-react-parser.min.js 10.33 KB (0%) 207 ms (0%) 57 ms (+6.09% 🔺) 263 ms

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 24, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2505a8f) to head (d9c608d).
⚠️ Report is 1209 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #879   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          174       174           
  Branches        58        58           
=========================================
  Hits           174       174           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@remarkablemark remarkablemark merged commit 565d33d into master Mar 24, 2023
@remarkablemark remarkablemark deleted the fix/types branch March 24, 2023 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include , to index.d.ts

2 participants