mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 20:21:46 +00:00
feat(d3): update d3 to major version 5
BREAKING CHANGE: * feat(d3) :add d3-contour, d3-fetch, and d3-scale-chromatic * refactor(d3): remove d3-request and d3-queue in favour of d3-fetch * chore(d3): update major version number to 5.0 * chore(d3): move legacy 4.x definitions with old dependencies into `v4` folder. Apply path-mapping to d3-scale v1 and d3 v4. Update minor version number to 4.13
This commit is contained in:
Vendored
+9
-3
@@ -1,9 +1,14 @@
|
||||
// Type definitions for D3JS d3 standard bundle 4.12
|
||||
// Type definitions for D3JS d3 standard bundle 5.0
|
||||
// Project: https://github.com/d3/d3
|
||||
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
// Last module patch version validated against: 5.0.0 RC3
|
||||
|
||||
// NOTE TO MAINTAINERS: Review D3 v4.x module dependencies (see v4 sub-folder) and update its path-mappings in tsconfig (v4 folder),
|
||||
// if new MAJOR version of D3 v4 modules are released!!!
|
||||
|
||||
export as namespace d3;
|
||||
|
||||
export const version: string;
|
||||
@@ -13,10 +18,12 @@ export * from 'd3-brush';
|
||||
export * from 'd3-chord';
|
||||
export * from 'd3-collection';
|
||||
export * from 'd3-color';
|
||||
export * from 'd3-contour';
|
||||
export * from 'd3-dispatch';
|
||||
export * from 'd3-drag';
|
||||
export * from 'd3-dsv';
|
||||
export * from 'd3-ease';
|
||||
export * from 'd3-fetch';
|
||||
export * from 'd3-force';
|
||||
export * from 'd3-format';
|
||||
export * from 'd3-geo';
|
||||
@@ -25,10 +32,9 @@ export * from 'd3-interpolate';
|
||||
export * from 'd3-path';
|
||||
export * from 'd3-polygon';
|
||||
export * from 'd3-quadtree';
|
||||
export * from 'd3-queue';
|
||||
export * from 'd3-random';
|
||||
export * from 'd3-request';
|
||||
export * from 'd3-scale';
|
||||
export * from 'd3-scale-chromatic';
|
||||
export * from 'd3-selection';
|
||||
export * from 'd3-shape';
|
||||
export * from 'd3-time';
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import * as d3 from 'd3';
|
||||
|
||||
const version: string = d3.version;
|
||||
|
||||
// NOTE: Tests for all re-exports of consituent D3 modules are omitted as excessive.
|
||||
// The standard bundle definition is a straightforward pass-through with the exception of the
|
||||
// above tested "version" property.
|
||||
Vendored
+41
@@ -0,0 +1,41 @@
|
||||
// Type definitions for D3JS d3 standard bundle 4.13
|
||||
// Project: https://github.com/d3/d3
|
||||
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
// NOTE TO MAINTAINERS: Review and update path-mappings in tsconfig, if new major version of D3 v4 modules are released!!!
|
||||
|
||||
export as namespace d3;
|
||||
|
||||
export const version: string;
|
||||
export * from 'd3-array';
|
||||
export * from 'd3-axis';
|
||||
export * from 'd3-brush';
|
||||
export * from 'd3-chord';
|
||||
export * from 'd3-collection';
|
||||
export * from 'd3-color';
|
||||
export * from 'd3-dispatch';
|
||||
export * from 'd3-drag';
|
||||
export * from 'd3-dsv';
|
||||
export * from 'd3-ease';
|
||||
export * from 'd3-force';
|
||||
export * from 'd3-format';
|
||||
export * from 'd3-geo';
|
||||
export * from 'd3-hierarchy';
|
||||
export * from 'd3-interpolate';
|
||||
export * from 'd3-path';
|
||||
export * from 'd3-polygon';
|
||||
export * from 'd3-quadtree';
|
||||
export * from 'd3-queue';
|
||||
export * from 'd3-random';
|
||||
export * from 'd3-request';
|
||||
export * from 'd3-scale';
|
||||
export * from 'd3-selection';
|
||||
export * from 'd3-shape';
|
||||
export * from 'd3-time';
|
||||
export * from 'd3-time-format';
|
||||
export * from 'd3-timer';
|
||||
export * from 'd3-transition';
|
||||
export * from 'd3-voronoi';
|
||||
export * from 'd3-zoom';
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../../",
|
||||
"typeRoots": [
|
||||
"../../"
|
||||
],
|
||||
"paths": {
|
||||
"d3-scale": ["d3-scale/v1"],
|
||||
"d3": ["d3/v4"]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"d3-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user