Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript support #39

Merged
merged 4 commits into from
Jun 11, 2021
Merged

Typescript support #39

merged 4 commits into from
Jun 11, 2021

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 :)

chartjs-chart-sankey.esm.d.ts Outdated Show resolved Hide resolved
rollup.config.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
src/index.js Show resolved Hide resolved
chartjs-chart-sankey.esm.d.ts Outdated Show resolved Hide resolved
chartjs-chart-sankey.esm.d.ts Outdated Show resolved Hide resolved
- 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