Skip to content

Conversation

artemkosenko
Copy link
Contributor

Typescript definitions have been added.
All changes are cosmetic.
Logic is still the same.

- added type definitions and extensions to Chart.js (chartjs-chart-sankey.esm.d.ts)
- added rollup-plugin-copy modules to dev dependencies
- updated rollup.config.js (copy chartjs-chart-sankey.esm.d.ts to dist on build)
- updated README.md (chart.js version 3.3.x)
- updated index.js
- version 0.7.1
- updated README.md
- added d.ts type definition for typescript support
- added JSDoc definitions (for IDE type-helper to work)
@kurkle kurkle added the enhancement New feature or request label Jun 11, 2021
Copy link
Owner

@kurkle kurkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thanks!

Just couple of nits I'd prefer. I can do those changes myself if you spent all your energy already on this :)

- typed definitions moved into the 'types' folder (for consistency)
- removed the 'rollup-copy' plugin
- added 'types' parameter into the package
- combined imports in the 'index.esm.d.ts' file
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kurkle kurkle merged commit 72f64eb into kurkle:master Jun 11, 2021
@artemkosenko artemkosenko deleted the typescript-support branch June 12, 2021 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants