-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
[d3-scale-chromatic] Upgrade to v1.5.0 #43917
[d3-scale-chromatic] Upgrade to v1.5.0 #43917
Conversation
@@ -12,7 +12,7 @@ import * as d3ScaleChromatic from 'd3-scale-chromatic'; | |||
// Preparatory Steps | |||
// ----------------------------------------------------------------------- | |||
|
|||
let colorInterpolator: ((t: number) => string); | |||
let colorInterpolator: (t: number) => string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from running Prettier.
const Warm: string = d3ScaleChromatic.interpolateWarm(0.7); | ||
const Cool: string = d3ScaleChromatic.interpolateCool(0.7); | ||
const Rainbow: string = d3ScaleChromatic.interpolateRainbow(0.7); | ||
const Sinebow: string = d3ScaleChromatic.interpolateSinebow(0.7); | ||
const CubehelixDefault: string = d3ScaleChromatic.interpolateCubehelixDefault(0.7); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've re-ordered the interpolators in this section to match the type definitions and the library's README.
👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings. Let’s review the numbers, shall we? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
@axelboc Thank you for submitting this PR! 🔔 @Ledragon @gustavderdrache @borisyankov @henriquefm - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped! |
I just published |
Please fill in this template.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If changing an existing definition:
If you are making substantial changes, consider adding atslint.json
containing{ "extends": "dtslint/dt.json" }
. If for reason the any rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]
and not for whole package so that the need for disabling can be reviewed.