[DEPRECATED] This repo was intended as a staging area for typescript definitions supporting the latest major release of D3js (i.e. version 4.1.x) by Mike Bostock. It has been migrated to DefinitelyTyped.
I am using a transition with an easing function in d3 in my Angular 2 typescript application. The following line of code, which I believe is valid, is generating errors when the typescript validation runs.
I am using a transition with an easing function in d3 in my Angular 2 typescript application. The following line of code, which I believe is valid, is generating errors when the typescript validation runs.
I get this error in the angular-cli 'ng build' process:
Property 'amplitude' does not exist on type '(normalizedTime: number) => number'
Looking at the d3-ease/index.d.ts file, I see this:
So is the d3-ease typescript definition just wrong? Looking at the d3 source code, it appears so but maybe I'm just not understanding something?