mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Replace D3 v3 definition with D3 v4 (bundle) * Replaces the legacy D3 v3 definitions in `d3` with a definition file representing the D3 version 4 standard bundle * Add `package.json` file with legacy dependency to @types/d3 version >=3.5.36 <4.0.0 * Updated tsconfig.json, package.json, versions * Updated tsconfig.json to control typings resolution for D3 v3 * Updated package.json to use caret notation of D3 typings * Updated certain affected definitions header comments with version numbers, where version number was missing buit seemed reasonably ascertainable as latest. * Added comments to each affected definition file with TODO once upgrade to D3 v4 is considered * Chore changes as per review. * Removed TODO "upgrade-to-v4" comments * Removed added empty lines.
13 lines
339 B
TypeScript
13 lines
339 B
TypeScript
import * as d3 from 'd3';
|
|
|
|
|
|
// TODO: complete tests. Note the tests here should be limited to
|
|
// testing existence of re-exported members of the
|
|
// constituent modules comprising the D3 version 4 standard bundle
|
|
|
|
// Ability to access d3-select related properties
|
|
|
|
let d: d3.Selection<HTMLElement, any, null, undefined> = d3.selection();
|
|
|
|
|