From e511e4819e765da36dd026e69a963d2af4162735 Mon Sep 17 00:00:00 2001 From: Tom Wanzek Date: Thu, 28 Jul 2016 18:32:00 -0400 Subject: [PATCH] Chore + Typo Correction: * New Line at end. * No trailing whitespaces (including within commentes.) * Indenting in accordance with editorconfig. * Corrected typo in comment in d3-random --- d3-array/d3-array-tests.ts | 4 +-- d3-array/tsconfig.json | 36 +++++++++++++------------- d3-axis/d3-axis-tests.ts | 4 +-- d3-axis/index.d.ts | 6 ++--- d3-axis/tsconfig.json | 36 +++++++++++++------------- d3-brush/d3-brush-tests.ts | 4 +-- d3-brush/index.d.ts | 6 ++--- d3-brush/tsconfig.json | 36 +++++++++++++------------- d3-chord/d3-chord-tests.ts | 4 +-- d3-chord/index.d.ts | 2 +- d3-chord/tsconfig.json | 36 +++++++++++++------------- d3-collection/d3-collection-tests.ts | 6 ++--- d3-collection/index.d.ts | 4 +-- d3-collection/tsconfig.json | 36 +++++++++++++------------- d3-color/d3-color-tests.ts | 4 +-- d3-color/index.d.ts | 13 +++++----- d3-color/tsconfig.json | 36 +++++++++++++------------- d3-dispatch/d3-dispatch-tests.ts | 8 +++--- d3-dispatch/index.d.ts | 2 +- d3-dispatch/tsconfig.json | 36 +++++++++++++------------- d3-drag/d3-drag-tests.ts | 4 +-- d3-drag/index.d.ts | 6 ++--- d3-drag/tsconfig.json | 36 +++++++++++++------------- d3-ease/d3-ease-tests.ts | 2 +- d3-ease/index.d.ts | 2 +- d3-ease/tsconfig.json | 36 +++++++++++++------------- d3-force/d3-force-tests.ts | 4 +-- d3-force/tsconfig.json | 36 +++++++++++++------------- d3-format/d3-format-tests.ts | 6 ++--- d3-format/index.d.ts | 36 +++++++++++++------------- d3-hierarchy/d3-hierarchy-tests.ts | 4 +-- d3-hierarchy/index.d.ts | 2 +- d3-hierarchy/tsconfig.json | 36 +++++++++++++------------- d3-interpolate/d3-interpolate-tests.ts | 2 +- d3-interpolate/tsconfig.json | 36 +++++++++++++------------- d3-path/d3-path-tests.ts | 4 +-- d3-path/index.d.ts | 2 +- d3-path/tsconfig.json | 36 +++++++++++++------------- d3-polygon/d3-polygon-tests.ts | 4 +-- d3-polygon/index.d.ts | 14 +++++----- d3-polygon/tsconfig.json | 36 +++++++++++++------------- d3-quadtree/d3-quadtree-tests.ts | 4 +-- d3-quadtree/index.d.ts | 4 +-- d3-quadtree/tsconfig.json | 36 +++++++++++++------------- d3-queue/d3-queue-tests.ts | 4 +-- d3-queue/index.d.ts | 28 ++++++++++---------- d3-queue/tsconfig.json | 36 +++++++++++++------------- d3-random/d3-random-tests.ts | 2 +- d3-random/index.d.ts | 16 ++++++------ d3-random/tsconfig.json | 36 +++++++++++++------------- d3-scale/d3-scale-tests.ts | 4 +-- d3-scale/index.d.ts | 2 +- d3-scale/tsconfig.json | 36 +++++++++++++------------- d3-selection/d3-selection-tests.ts | 14 +++++----- d3-selection/index.d.ts | 12 ++++----- d3-selection/tsconfig.json | 36 +++++++++++++------------- d3-shape/d3-shape-tests.ts | 4 +-- d3-shape/tsconfig.json | 36 +++++++++++++------------- d3-time-format/d3-time-format-tests.ts | 2 +- d3-time-format/index.d.ts | 2 +- d3-time-format/tsconfig.json | 36 +++++++++++++------------- d3-time/d3-time-tests.ts | 4 +-- d3-time/tsconfig.json | 36 +++++++++++++------------- d3-timer/d3-timer-tests.ts | 2 +- d3-timer/index.d.ts | 10 +++---- d3-timer/tsconfig.json | 36 +++++++++++++------------- d3-transition/d3-transition-tests.ts | 6 ++--- d3-transition/index.d.ts | 1 - d3-transition/tsconfig.json | 36 +++++++++++++------------- d3-voronoi/d3-voronoi-tests.ts | 4 +-- d3-voronoi/index.d.ts | 8 +++--- d3-voronoi/tsconfig.json | 36 +++++++++++++------------- d3-zoom/d3-zoom-tests.ts | 2 +- d3-zoom/index.d.ts | 2 +- d3-zoom/tsconfig.json | 36 +++++++++++++------------- 75 files changed, 616 insertions(+), 616 deletions(-) diff --git a/d3-array/d3-array-tests.ts b/d3-array/d3-array-tests.ts index c2b8c82b43..3ec1a8fcfd 100644 --- a/d3-array/d3-array-tests.ts +++ b/d3-array/d3-array-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-array module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -548,4 +548,4 @@ num = d3.thresholdFreedmanDiaconis([-1, 0, 1, 1, 3, 20, 234], -1, 234); num = d3.thresholdScott([-1, 0, 1, 1, 3, 20, 234], -1, 234); -num = d3.thresholdSturges([-1, 0, 1, 1, 3, 20, 234]); \ No newline at end of file +num = d3.thresholdSturges([-1, 0, 1, 1, 3, 20, 234]); diff --git a/d3-array/tsconfig.json b/d3-array/tsconfig.json index 2f1b24c522..21388bf158 100644 --- a/d3-array/tsconfig.json +++ b/d3-array/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-array-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-array-tests.ts" + ] +} diff --git a/d3-axis/d3-axis-tests.ts b/d3-axis/d3-axis-tests.ts index 2c34b47a0a..3349aaed8c 100644 --- a/d3-axis/d3-axis-tests.ts +++ b/d3-axis/d3-axis-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-axis module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -149,4 +149,4 @@ let canvasSelection: Selection; let canvasTransition = canvasSelection.transition(); // canvasSelection.call(rightAxis); // fails, incompatible context container element -// canvasTransition.call(rightAxis); // fails, incompatible context container element \ No newline at end of file +// canvasTransition.call(rightAxis); // fails, incompatible context container element diff --git a/d3-axis/index.d.ts b/d3-axis/index.d.ts index 97f63118f9..a824df5bbe 100644 --- a/d3-axis/index.d.ts +++ b/d3-axis/index.d.ts @@ -8,7 +8,7 @@ import { Selection, TransitionLike } from 'd3-selection'; // TODO: The below import is commented out, as d3-axis does not have a dependency // on d3-time. d3-time may only be loaded, if the use case requires a TimeInterval (or CountableTimeInterval) // for an axis. In which case, the ticks(...) signature with interval argument, would be best-specified -// with the below import. +// with the below import. // import { TimeInterval } from 'd3-time'; @@ -46,7 +46,7 @@ export interface Axis { // ticks(interval: TimeInterval, specifier?: string): Axis; - // HACK: use `any` instead of TimeInterval + // HACK: use `any` instead of TimeInterval ticks(interval: any, specifier?: string): Axis; ticks(arg0: any, ...args: any[]): Axis; tickArguments(): any[]; @@ -71,4 +71,4 @@ export interface Axis { export function axisTop(scale: AxisScale): Axis; export function axisRight(scale: AxisScale): Axis; export function axisBottom(scale: AxisScale): Axis; -export function axisLeft(scale: AxisScale): Axis; \ No newline at end of file +export function axisLeft(scale: AxisScale): Axis; diff --git a/d3-axis/tsconfig.json b/d3-axis/tsconfig.json index 3988b9356e..b568e25181 100644 --- a/d3-axis/tsconfig.json +++ b/d3-axis/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-axis-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-axis-tests.ts" + ] +} diff --git a/d3-brush/d3-brush-tests.ts b/d3-brush/d3-brush-tests.ts index 1155ada0ac..c0598f82dd 100644 --- a/d3-brush/d3-brush-tests.ts +++ b/d3-brush/d3-brush-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-brush module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -182,4 +182,4 @@ let e: d3Brush.D3BrushEvent; let target: d3Brush.BrushBehavior = e.target; let type: 'start' | 'brush' | 'end' | string = e.type; let brushSelection: d3Brush.BrushSelection = e.selection; -let sourceEvent: any = e.sourceEvent; \ No newline at end of file +let sourceEvent: any = e.sourceEvent; diff --git a/d3-brush/index.d.ts b/d3-brush/index.d.ts index 0925112bb9..a91946b5c9 100644 --- a/d3-brush/index.d.ts +++ b/d3-brush/index.d.ts @@ -6,8 +6,8 @@ import { ArrayLike, Selection, TransitionLike } from 'd3-selection'; /** - * Type alias for a BrushSelection. For a two-dimensional brush, it must be defined as [[x0, y0], [x1, y1]], - * where x0 is the minimum x-value, y0 is the minimum y-value, x1 is the maximum x-value, and y1 is the maximum y-value. + * Type alias for a BrushSelection. For a two-dimensional brush, it must be defined as [[x0, y0], [x1, y1]], + * where x0 is the minimum x-value, y0 is the minimum y-value, x1 is the maximum x-value, and y1 is the maximum y-value. * For an x-brush, it must be defined as [x0, x1]; for a y-brush, it must be defined as [y0, y1]. */ export type BrushSelection = [[number, number], [number, number]] | [number, number]; @@ -43,4 +43,4 @@ export interface D3BrushEvent { type: 'start' | 'brush' | 'end' | string; // Leave failsafe string type for cases like 'brush.foo' selection: BrushSelection; sourceEvent: any; -} \ No newline at end of file +} diff --git a/d3-brush/tsconfig.json b/d3-brush/tsconfig.json index c557b1a6be..7e30cb98d8 100644 --- a/d3-brush/tsconfig.json +++ b/d3-brush/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-brush-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-brush-tests.ts" + ] +} diff --git a/d3-chord/d3-chord-tests.ts b/d3-chord/d3-chord-tests.ts index 74b7ff3605..d322e8a843 100644 --- a/d3-chord/d3-chord-tests.ts +++ b/d3-chord/d3-chord-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-chord module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -183,4 +183,4 @@ ribbonPaths = select('g') .selectAll() .data(function (chords) { return chords; }) .enter().append('path') - .attr('d', svgRibbon); \ No newline at end of file + .attr('d', svgRibbon); diff --git a/d3-chord/index.d.ts b/d3-chord/index.d.ts index 0f55619ba6..3c232c15a6 100644 --- a/d3-chord/index.d.ts +++ b/d3-chord/index.d.ts @@ -75,4 +75,4 @@ export interface RibbonGenerator { export function ribbon(): RibbonGenerator; export function ribbon(): RibbonGenerator; -export function ribbon(): RibbonGenerator; \ No newline at end of file +export function ribbon(): RibbonGenerator; diff --git a/d3-chord/tsconfig.json b/d3-chord/tsconfig.json index 43b45b8819..f549e0533c 100644 --- a/d3-chord/tsconfig.json +++ b/d3-chord/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-chord-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-chord-tests.ts" + ] +} diff --git a/d3-collection/d3-collection-tests.ts b/d3-collection/d3-collection-tests.ts index 72bb32e66b..e862f9e601 100644 --- a/d3-collection/d3-collection-tests.ts +++ b/d3-collection/d3-collection-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-collection module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -179,7 +179,7 @@ basicSet = d3Collection.set(testObjArray, function (value, index, array) { return v.name; }); -// from existing set +// from existing set basicSet = d3Collection.set(basicSet); @@ -366,4 +366,4 @@ num = testL2NestedArray[0].values[0].values[0].yield; // access chain to leaf pr testL1NestedArrayRollup = nestL1Rollup.entries(raw); -num = testL1NestedArrayRollup[0].value; // get rollup value \ No newline at end of file +num = testL1NestedArrayRollup[0].value; // get rollup value diff --git a/d3-collection/index.d.ts b/d3-collection/index.d.ts index 222f6a7a3b..fea25224a4 100644 --- a/d3-collection/index.d.ts +++ b/d3-collection/index.d.ts @@ -95,7 +95,7 @@ export function set(array: Array, key: (value: T, index?: number, array?: // if AT LEAST ONE KEY was set. This seems a reasonable constraint in practice, given the intent of the nest operator. // Otherwise, an additional '| Array | RollupType` would have to be added to the union type. This would cover // cases (a) without key or rollup (b) without key but with rollup. However, again, the union types make it cumbersome -// without much gain. +// without much gain. export interface NestedArray extends Array<{ key: string, values: NestedArray | Array | undefined, value: RollupType | undefined }> { } export interface NestedMap extends Map | Array | RollupType> { } @@ -114,4 +114,4 @@ interface Nest { } export function nest(): Nest; -export function nest(): Nest; \ No newline at end of file +export function nest(): Nest; diff --git a/d3-collection/tsconfig.json b/d3-collection/tsconfig.json index d73566e5e9..bb31308ddc 100644 --- a/d3-collection/tsconfig.json +++ b/d3-collection/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-collection-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-collection-tests.ts" + ] +} diff --git a/d3-color/d3-color-tests.ts b/d3-color/d3-color-tests.ts index a3213fa2e2..29b9303a2b 100644 --- a/d3-color/d3-color-tests.ts +++ b/d3-color/d3-color-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-color module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -127,4 +127,4 @@ cRGB = cCubehelix.rgb(); displayable = cCubehelix.displayable(); cString = cCubehelix.toString(); console.log('Channels = (h : %d, s: %d, l: %d)', cCubehelix.h, cCubehelix.s, cCubehelix.l); -console.log('Opacity = %d', cCubehelix.opacity); \ No newline at end of file +console.log('Opacity = %d', cCubehelix.opacity); diff --git a/d3-color/index.d.ts b/d3-color/index.d.ts index 546842f4a4..e13aafbe6c 100644 --- a/d3-color/index.d.ts +++ b/d3-color/index.d.ts @@ -21,7 +21,7 @@ export interface Color { export interface ColorFactory extends Function { (cssColorSpecifier: string): RGBColor | HSLColor; (color: ColorSpaceObject): RGBColor | HSLColor; -// prototype: Color; + // prototype: Color; } export interface RGBColor extends Color { @@ -40,7 +40,7 @@ export interface RGBColorFactory extends Function { (r: number, g: number, b: number, opacity?: number): RGBColor; (cssColorSpecifier: string): RGBColor; (color: ColorSpaceObject): RGBColor; -// prototype: RGBColor; + // prototype: RGBColor; } export interface HSLColor extends Color { @@ -58,7 +58,7 @@ export interface HSLColorFactory extends Function { (h: number, s: number, l: number, opacity?: number): HSLColor; (cssColorSpecifier: string): HSLColor; (color: ColorSpaceObject): HSLColor; -// prototype: HSLColor; + // prototype: HSLColor; } export interface LabColor extends Color { @@ -75,7 +75,7 @@ export interface LabColorFactory extends Function { (l: number, a: number, b: number, opacity?: number): LabColor; (cssColorSpecifier: string): LabColor; (color: ColorSpaceObject): LabColor; -// prototype: LabColor; + // prototype: LabColor; } export interface HCLColor extends Color { @@ -92,7 +92,7 @@ export interface HCLColorFactory extends Function { (h: number, l: number, c: number, opacity?: number): HCLColor; (cssColorSpecifier: string): HCLColor; (color: ColorSpaceObject): HCLColor; -// prototype: HCLColor; + // prototype: HCLColor; } export interface CubehelixColor extends Color { @@ -109,7 +109,7 @@ export interface CubehelixColorFactory extends Function { (h: number, s: number, l: number, opacity?: number): CubehelixColor; (cssColorSpecifier: string): CubehelixColor; (color: ColorSpaceObject): CubehelixColor; -// prototype: CubehelixColor; + // prototype: CubehelixColor; } // -------------------------------------------------------------------------- @@ -127,3 +127,4 @@ export var lab: LabColorFactory; export var hcl: HCLColorFactory; export var cubehelix: CubehelixColorFactory; + diff --git a/d3-color/tsconfig.json b/d3-color/tsconfig.json index b9073a3b74..6dd477889f 100644 --- a/d3-color/tsconfig.json +++ b/d3-color/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-color-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-color-tests.ts" + ] +} diff --git a/d3-dispatch/d3-dispatch-tests.ts b/d3-dispatch/d3-dispatch-tests.ts index 9f1323d64a..6f358587f3 100644 --- a/d3-dispatch/d3-dispatch-tests.ts +++ b/d3-dispatch/d3-dispatch-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-dispatch module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -25,12 +25,12 @@ let dispatch: d3Dispatch.Dispatch, dispatch = d3Dispatch.dispatch('foo', 'bar'); -function cbFn (this: HTMLElement, d: Datum, i: number) { +function cbFn(this: HTMLElement, d: Datum, i: number) { console.log(this.baseURI ? this.baseURI : 'nada'); console.log(d ? d.a : 'nada'); }; -function cbFn2 (this: SVGElement, d: Datum, i: number) { +function cbFn2(this: SVGElement, d: Datum, i: number) { console.log(this.baseURI ? this.baseURI : 'nada'); console.log(d ? d.a : 'nada'); }; @@ -52,4 +52,4 @@ dispatch.on('bar', null); // Copy dispatch ----------------------------------------------- copy = dispatch.copy(); -// copy2 = dispatch.copy(); // test fails type mismatch of underlying event target \ No newline at end of file +// copy2 = dispatch.copy(); // test fails type mismatch of underlying event target diff --git a/d3-dispatch/index.d.ts b/d3-dispatch/index.d.ts index 314d76f17c..41f03e75db 100644 --- a/d3-dispatch/index.d.ts +++ b/d3-dispatch/index.d.ts @@ -13,4 +13,4 @@ export interface Dispatch { on(typenames: string, callback: (this: T, ...args: any[]) => void): Dispatch; } -export function dispatch(...types: string[]): Dispatch; \ No newline at end of file +export function dispatch(...types: string[]): Dispatch; diff --git a/d3-dispatch/tsconfig.json b/d3-dispatch/tsconfig.json index 579da6a616..5da2fe1372 100644 --- a/d3-dispatch/tsconfig.json +++ b/d3-dispatch/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-dispatch-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-dispatch-tests.ts" + ] +} diff --git a/d3-drag/d3-drag-tests.ts b/d3-drag/d3-drag-tests.ts index 84b7f97d5e..461e39fdea 100644 --- a/d3-drag/d3-drag-tests.ts +++ b/d3-drag/d3-drag-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-drag module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -11,7 +11,7 @@ import { event, select, Selection } from 'd3-selection'; // NB: Consider alternative approachto getting live event-binding // when using webpack as suggested by @ocombe in response to -// event binding question https://github.com/d3/d3-zoom/issues/32#issuecomment-229889310 +// event binding question https://github.com/d3/d3-zoom/issues/32#issuecomment-229889310 // d3.getEvent = () => require("d3-selection").event; // // This can be used in callbacks diff --git a/d3-drag/index.d.ts b/d3-drag/index.d.ts index aae727a021..e6bfc4086b 100644 --- a/d3-drag/index.d.ts +++ b/d3-drag/index.d.ts @@ -26,7 +26,7 @@ export type DragContainerElement = HTMLElement | SVGSVGElement | SVGGElement; // /** * The subject datum should at a minimum expose x and y properties, so that the relative position - * of the subject and the pointer can be preserved during the drag gesture. + * of the subject and the pointer can be preserved during the drag gesture. */ export interface SubjectPosition { x: number; @@ -38,8 +38,8 @@ export interface DragBehavior | ArrayLike) => DragContainerElement; container(accessor: (this: GElement, datum?: Datum, index?: number, group?: Array | ArrayLike) => DragContainerElement): DragBehavior; container(container: DragContainerElement): DragBehavior; - filter(): (this: GElement, datum?: Datum, index?: number, group?: Array| ArrayLike) => boolean; - filter(filterFn: (this: GElement, datum?: Datum, index?: number, group?: Array| ArrayLike) => boolean): DragBehavior; + filter(): (this: GElement, datum?: Datum, index?: number, group?: Array | ArrayLike) => boolean; + filter(filterFn: (this: GElement, datum?: Datum, index?: number, group?: Array | ArrayLike) => boolean): DragBehavior; subject(): (this: GElement, datum?: Datum, index?: number, group?: Array | ArrayLike) => Subject; subject(accessor: (this: GElement, datum?: Datum, index?: number, group?: Array | ArrayLike) => Subject): DragBehavior; on(typenames: string): (this: GElement, datum?: Datum, index?: number, group?: Array | ArrayLike) => any; diff --git a/d3-drag/tsconfig.json b/d3-drag/tsconfig.json index 8e4928d9d8..db3c1152ab 100644 --- a/d3-drag/tsconfig.json +++ b/d3-drag/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-drag-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-drag-tests.ts" + ] +} diff --git a/d3-ease/d3-ease-tests.ts b/d3-ease/d3-ease-tests.ts index 27441295b7..cad8b0013b 100644 --- a/d3-ease/d3-ease-tests.ts +++ b/d3-ease/d3-ease-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-ease module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. diff --git a/d3-ease/index.d.ts b/d3-ease/index.d.ts index 22a19da21a..9f1ba66de6 100644 --- a/d3-ease/index.d.ts +++ b/d3-ease/index.d.ts @@ -53,4 +53,4 @@ export function easeBackInOut(normalizedTime: number): number; export function easeElastic(normalizedTime: number): number; export function easeElasticIn(normalizedTime: number): number; export function easeElasticOut(normalizedTime: number): number; -export function easeElasticInOut(normalizedTime: number): number; \ No newline at end of file +export function easeElasticInOut(normalizedTime: number): number; diff --git a/d3-ease/tsconfig.json b/d3-ease/tsconfig.json index 40d94a1cbd..169c7c92dc 100644 --- a/d3-ease/tsconfig.json +++ b/d3-ease/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-ease-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-ease-tests.ts" + ] +} diff --git a/d3-force/d3-force-tests.ts b/d3-force/d3-force-tests.ts index 0137d4e784..f7e7ae8a05 100644 --- a/d3-force/d3-force-tests.ts +++ b/d3-force/d3-force-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-force module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -524,4 +524,4 @@ nodeLinkSimulation.tick(); // find() ----------------------------------------------------------------------------- simNode = nodeLinkSimulation.find(100, 100); -simNode = nodeLinkSimulation.find(100, 100, 20); \ No newline at end of file +simNode = nodeLinkSimulation.find(100, 100, 20); diff --git a/d3-force/tsconfig.json b/d3-force/tsconfig.json index 82b666c6cd..6f080970eb 100644 --- a/d3-force/tsconfig.json +++ b/d3-force/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-force-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-force-tests.ts" + ] +} diff --git a/d3-format/d3-format-tests.ts b/d3-format/d3-format-tests.ts index adbb447692..98730b1d99 100644 --- a/d3-format/d3-format-tests.ts +++ b/d3-format/d3-format-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-format module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -79,5 +79,5 @@ localeObj = d3Format.formatLocale(localeDef); localeObj = d3Format.formatDefaultLocale(localeDef); -let formatFactory: (specifier: string) => ((n: number) => string) = localeObj.format; -let formatPrefixFactory: (specifier: string, value: number) => ((n: number) => string) = localeObj.formatPrefix; +let formatFactory: (specifier: string) => ((n: number) => string) = localeObj.format; +let formatPrefixFactory: (specifier: string, value: number) => ((n: number) => string) = localeObj.formatPrefix; diff --git a/d3-format/index.d.ts b/d3-format/index.d.ts index 00582ed2c7..0f7275bdc9 100644 --- a/d3-format/index.d.ts +++ b/d3-format/index.d.ts @@ -30,19 +30,19 @@ export interface FormatLocaleDefinition { export interface FormatLocaleObject { /** - * Returns a new format function for the given string specifier. The returned function + * Returns a new format function for the given string specifier. The returned function * takes a number as the only argument, and returns a string representing the formatted number. - * + * * @param specifier A Specifier string */ format(specifier: string): (n: number) => string; /** - * Returns a new format function for the given string specifier. The returned function + * Returns a new format function for the given string specifier. The returned function * takes a number as the only argument, and returns a string representing the formatted number. - * The returned function will convert values to the units of the appropriate SI prefix for the + * The returned function will convert values to the units of the appropriate SI prefix for the * specified numeric reference value before formatting in fixed point notation. - * + * * @param specifier A Specifier string * @param value The reference value to determine the appropriate SI prefix. */ @@ -77,39 +77,39 @@ export function formatLocale(locale: FormatLocaleDefinition): FormatLocaleObject export function formatDefaultLocale(defaultLocale: FormatLocaleDefinition): FormatLocaleObject; /** - * Returns a new format function for the given string specifier. The returned function + * Returns a new format function for the given string specifier. The returned function * takes a number as the only argument, and returns a string representing the formatted number. - * + * * Uses the current default locale. - * + * * @param specifier A Specifier string */ export function format(specifier: string): (n: number) => string; /** - * Returns a new format function for the given string specifier. The returned function + * Returns a new format function for the given string specifier. The returned function * takes a number as the only argument, and returns a string representing the formatted number. - * The returned function will convert values to the units of the appropriate SI prefix for the + * The returned function will convert values to the units of the appropriate SI prefix for the * specified numeric reference value before formatting in fixed point notation. - * + * * Uses the current default locale. - * + * * @param specifier A Specifier string * @param value The reference value to determine the appropriate SI prefix. */ export function formatPrefix(specifier: string, value: number): (n: number) => string; /** - * Parses the specified specifier, returning an object with exposed fields that correspond to the + * Parses the specified specifier, returning an object with exposed fields that correspond to the * format specification mini-language and a toString method that reconstructs the specifier. - * + * * @param specifier A specifier string. */ export function formatSpecifier(specifier: string): FormatSpecifier; /** * Returns a suggested decimal precision for fixed point notation given the specified numeric step value. - * + * * @param step The step represents the minimum absolute difference between values that will be formatted. * (This assumes that the values to be formatted are also multiples of step.) */ @@ -118,7 +118,7 @@ export function precisionFixed(step: number): number; /** * Returns a suggested decimal precision for use with locale.formatPrefix given the specified * numeric step and reference value. - * + * * @param step The step represents the minimum absolute difference between values that will be formatted. * (This assumes that the values to be formatted are also multiples of step.) * @param value Reference value determines which SI prefix will be used. @@ -127,9 +127,9 @@ export function precisionPrefix(step: number, value: number): number; /** - * Returns a suggested decimal precision for format types that round to significant digits + * Returns a suggested decimal precision for format types that round to significant digits * given the specified numeric step and max values. - * + * * @param step The step represents the minimum absolute difference between values that will be formatted. * (This assumes that the values to be formatted are also multiples of step.) * @param max max represents the largest absolute value that will be formatted. diff --git a/d3-hierarchy/d3-hierarchy-tests.ts b/d3-hierarchy/d3-hierarchy-tests.ts index 62fdcd7d6f..ce7354afe3 100644 --- a/d3-hierarchy/d3-hierarchy-tests.ts +++ b/d3-hierarchy/d3-hierarchy-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-hierarchy module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -819,4 +819,4 @@ circles = d3Hierarchy.packSiblings(circles); let enclosure: { r: number, x: number, y: number }; -enclosure = d3Hierarchy.packEnclose(circles); \ No newline at end of file +enclosure = d3Hierarchy.packEnclose(circles); diff --git a/d3-hierarchy/index.d.ts b/d3-hierarchy/index.d.ts index b337805b86..dbd62ddb5b 100644 --- a/d3-hierarchy/index.d.ts +++ b/d3-hierarchy/index.d.ts @@ -312,4 +312,4 @@ export interface PackCircle { export function packSiblings(circles: Array): Array; -export function packEnclose(circles: Array): { r: number, x: number, y: number }; \ No newline at end of file +export function packEnclose(circles: Array): { r: number, x: number, y: number }; diff --git a/d3-hierarchy/tsconfig.json b/d3-hierarchy/tsconfig.json index 35378d9d33..6c95cf0415 100644 --- a/d3-hierarchy/tsconfig.json +++ b/d3-hierarchy/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-hierarchy-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-hierarchy-tests.ts" + ] +} diff --git a/d3-interpolate/d3-interpolate-tests.ts b/d3-interpolate/d3-interpolate-tests.ts index c7073af33a..64600ec1f6 100644 --- a/d3-interpolate/d3-interpolate-tests.ts +++ b/d3-interpolate/d3-interpolate-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-interpolate module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. diff --git a/d3-interpolate/tsconfig.json b/d3-interpolate/tsconfig.json index 28f4a7b024..4271a3052b 100644 --- a/d3-interpolate/tsconfig.json +++ b/d3-interpolate/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-interpolate-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-interpolate-tests.ts" + ] +} diff --git a/d3-path/d3-path-tests.ts b/d3-path/d3-path-tests.ts index 7c3e628e20..4240a8f7be 100644 --- a/d3-path/d3-path-tests.ts +++ b/d3-path/d3-path-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-path module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -38,4 +38,4 @@ context.rect(60, 60, 100, 200); context.closePath(); -let pathString: string = context.toString(); \ No newline at end of file +let pathString: string = context.toString(); diff --git a/d3-path/index.d.ts b/d3-path/index.d.ts index 85cd895ee7..0ff751fcae 100644 --- a/d3-path/index.d.ts +++ b/d3-path/index.d.ts @@ -15,4 +15,4 @@ export interface Path { toString(): string; } -export function path(): Path; \ No newline at end of file +export function path(): Path; diff --git a/d3-path/tsconfig.json b/d3-path/tsconfig.json index b17ce4493e..eea0c6fc90 100644 --- a/d3-path/tsconfig.json +++ b/d3-path/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-path-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-path-tests.ts" + ] +} diff --git a/d3-polygon/d3-polygon-tests.ts b/d3-polygon/d3-polygon-tests.ts index 123acabb1e..748054b727 100644 --- a/d3-polygon/d3-polygon-tests.ts +++ b/d3-polygon/d3-polygon-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-polygon module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -31,4 +31,4 @@ hull = d3Polygon.polygonHull(pointArray); containsFlag = d3Polygon.polygonContains(polygon, point); -num = d3Polygon.polygonLength(polygon); \ No newline at end of file +num = d3Polygon.polygonLength(polygon); diff --git a/d3-polygon/index.d.ts b/d3-polygon/index.d.ts index ab805837b7..e0e9e4ad7a 100644 --- a/d3-polygon/index.d.ts +++ b/d3-polygon/index.d.ts @@ -5,32 +5,32 @@ /** * Returns the signed area of the specified polygon. If the vertices of the polygon are in counterclockwise order ( - * assuming a coordinate system where the origin ⟨0,0⟩ is in the top-left corner), the returned area is positive; + * assuming a coordinate system where the origin ⟨0,0⟩ is in the top-left corner), the returned area is positive; * otherwise it is negative, or zero. - * + * * @param polygon Array of coordinates , and so on. */ export function polygonArea(polygon: Array<[number, number]>): number; /** * Returns the centroid of the specified polygon. - * + * * @param polygon Array of coordinates , and so on. */ export function polygonCentroid(polygon: Array<[number, number]>): [number, number]; /** * Returns the convex hull of the specified points using Andrew’s monotone chain algorithm. - * The returned hull is represented as an array containing a subset of the input points arranged in + * The returned hull is represented as an array containing a subset of the input points arranged in * counterclockwise order. Returns null if points has fewer than three elements. - * + * * @param points Array of coordinates , and so on. */ export function polygonHull(points: Array<[number, number]>): Array<[number, number]> | null; /** * Returns true if and only if the specified point is inside the specified polygon. - * + * * @param polygon Array of coordinates , and so on. * @param point Coordinates of point */ @@ -38,7 +38,7 @@ export function polygonContains(polygon: Array<[number, number]>, point: [number /** * Returns the length of the perimeter of the specified polygon. - * + * * @param polygon Array of coordinates , and so on. */ export function polygonLength(polygon: Array<[number, number]>): number; diff --git a/d3-polygon/tsconfig.json b/d3-polygon/tsconfig.json index f02a2cc0a1..b1c8548022 100644 --- a/d3-polygon/tsconfig.json +++ b/d3-polygon/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-polygon-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-polygon-tests.ts" + ] +} diff --git a/d3-quadtree/d3-quadtree-tests.ts b/d3-quadtree/d3-quadtree-tests.ts index d662ea7604..9a285dc204 100644 --- a/d3-quadtree/d3-quadtree-tests.ts +++ b/d3-quadtree/d3-quadtree-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-quadtree module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -242,4 +242,4 @@ let quadNode: d3Quadtree.QuadtreeInternalNode | d3Quadtree.QuadtreeLe quadNode = internalNode[0]; quadNode = internalNode[1]; quadNode = internalNode[2]; -quadNode = internalNode[3]; \ No newline at end of file +quadNode = internalNode[3]; diff --git a/d3-quadtree/index.d.ts b/d3-quadtree/index.d.ts index 05766b3673..94b38e9486 100644 --- a/d3-quadtree/index.d.ts +++ b/d3-quadtree/index.d.ts @@ -17,7 +17,7 @@ export interface QuadtreeLeaf { * 1 - the top-right quadrant, if any. * 2 - the bottom-left quadrant, if any. * 3 - the bottom-right quadrant, if any. - * + * * A child quadrant may be undefined if it is empty. */ export interface QuadtreeInternalNode extends Array | QuadtreeLeaf | undefined> {} @@ -47,4 +47,4 @@ export interface Quadtree { export function quadtree(): Quadtree<[number, number]>; export function quadtree(data: Array<[number, number]>): Quadtree<[number, number]>; export function quadtree(): Quadtree; -export function quadtree(data: Array, x?: (d: T) => number, y?: (d: T) => number): Quadtree; \ No newline at end of file +export function quadtree(data: Array, x?: (d: T) => number, y?: (d: T) => number): Quadtree; diff --git a/d3-quadtree/tsconfig.json b/d3-quadtree/tsconfig.json index 5fe196b7bb..cad852ded8 100644 --- a/d3-quadtree/tsconfig.json +++ b/d3-quadtree/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-quadtree-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-quadtree-tests.ts" + ] +} diff --git a/d3-queue/d3-queue-tests.ts b/d3-queue/d3-queue-tests.ts index 94a08b0f53..223978b355 100644 --- a/d3-queue/d3-queue-tests.ts +++ b/d3-queue/d3-queue-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-queue module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -92,4 +92,4 @@ qWithResults = d3Queue.queue() console.log(results[0], results[1]); }); -qWithResults.abort(); \ No newline at end of file +qWithResults.abort(); diff --git a/d3-queue/index.d.ts b/d3-queue/index.d.ts index 1bb9254afe..d57572a423 100644 --- a/d3-queue/index.d.ts +++ b/d3-queue/index.d.ts @@ -9,36 +9,36 @@ export interface Queue { /** * Adds the specified asynchronous task callback to the queue, with any optional arguments. - * - * @param task Task to be executed.The task is a function that will be called when the task should start. It is passed the - * specified optional arguments and an additional callback as the last argument; - * the callback must be invoked by the task when it finishes. - * The task must invoke the callback with two arguments: the error, if any, and the result of the task. + * + * @param task Task to be executed.The task is a function that will be called when the task should start. It is passed the + * specified optional arguments and an additional callback as the last argument; + * the callback must be invoked by the task when it finishes. + * The task must invoke the callback with two arguments: the error, if any, and the result of the task. * To return multiple results from a single callback, wrap the results in an object or array. * @param args Additional, optional arguments to be passed into deferred task on invocation */ defer(task: (...args: Array) => void, ...args: any[]): this; /** - * Aborts any active tasks, invoking each active task’s task.abort function, if any. - * Also prevents any new tasks from starting, and immediately invokes the queue.await or + * Aborts any active tasks, invoking each active task’s task.abort function, if any. + * Also prevents any new tasks from starting, and immediately invokes the queue.await or * queue.awaitAll callback with an error indicating that the queue was aborted. */ abort(): this; /** * Sets the callback to be invoked when all deferred tasks have finished (individual result arguments). - * + * * @param callback Callback function to be executed, when error occured or all deferred tasks - * have completed. The first argument to the callback is the first error that occurred, or null if no error occurred. - * If an error occurred, there are no additional arguments to the callback. Otherwise, + * have completed. The first argument to the callback is the first error that occurred, or null if no error occurred. + * If an error occurred, there are no additional arguments to the callback. Otherwise, * the callback is passed each result as an additional argument. */ await(callback: (error: any | null, ...results: Array) => void): this; /** * Sets the callback to be invoked when all deferred tasks have finished (results array). - * + * * @param callback Callback function to be executed, when error occured or all deferred tasks * have completed. The first argument to the callback is the first error that occurred, - * or null if no error occurred. If an error occurred, there are no additional arguments to the callback. + * or null if no error occurred. If an error occurred, there are no additional arguments to the callback. * Otherwise, the callback is also passed an array of results as the second argument. */ awaitAll(callback: (error: any | null, results?: Array) => void): this; @@ -49,7 +49,7 @@ export interface Queue { * Otherwise, concurrency is a positive integer. For example, if concurrency is 1, then all tasks will be run in series. * If concurrency is 3, then at most three tasks will be allowed to proceed concurrently; this is useful, for example, * when loading resources in a web browser. - * + * * @param concurrency Maximum number of deferred tasks to execute concurrently. */ -export function queue(concurrency?: number): Queue; \ No newline at end of file +export function queue(concurrency?: number): Queue; diff --git a/d3-queue/tsconfig.json b/d3-queue/tsconfig.json index e0647696ad..fe68a110c5 100644 --- a/d3-queue/tsconfig.json +++ b/d3-queue/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-queue-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-queue-tests.ts" + ] +} diff --git a/d3-random/d3-random-tests.ts b/d3-random/d3-random-tests.ts index f8a8bc3237..8cd72d9f0e 100644 --- a/d3-random/d3-random-tests.ts +++ b/d3-random/d3-random-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-random module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. diff --git a/d3-random/index.d.ts b/d3-random/index.d.ts index 08c9c499f3..436db7193a 100644 --- a/d3-random/index.d.ts +++ b/d3-random/index.d.ts @@ -4,27 +4,27 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** - * Returns a function for generating random numbers with a uniform distribution). - * The minimum allowed value of a returned number is min, and the maximum is max. + * Returns a function for generating random numbers with a uniform distribution). + * The minimum allowed value of a returned number is min, and the maximum is max. * If min is not specified, it defaults to 0; if max is not specified, it defaults to 1. */ export function randomUniform(min?: number, max?: number): () => number; /** - * Returns a function for generating random numbers with a normal (Gaussian) distribution. - * The expected value of the generated numbers is mu, with the given standard deviation sigma. + * Returns a function for generating random numbers with a normal (Gaussian) distribution. + * The expected value of the generated numbers is mu, with the given standard deviation sigma. * If mu is not specified, it defaults to 0; if sigma is not specified, it defaults to 1. */ export function randomNormal(mu?: number, sigma?: number): () => number; /** - * Returns a function for generating random numbers with a log-normal distribution. The expected value of the random variable’s natural logrithm is mu, + * Returns a function for generating random numbers with a log-normal distribution. The expected value of the random variable’s natural logrithm is mu, * with the given standard deviation sigma. If mu is not specified, it defaults to 0; if sigma is not specified, it defaults to 1. */ export function randomLogNormal(mu?: number, sigma?: number): () => number; /** - * eturns a function for generating random numbers with a Bates distribution with n independent variables. + * Returns a function for generating random numbers with a Bates distribution with n independent variables. */ export function randomBates(n: number): () => number; @@ -34,7 +34,7 @@ export function randomBates(n: number): () => number; export function randomIrwinHall(n: number): () => number; /** - * Returns a function for generating random numbers with an exponential distribution with the rate lambda; + * Returns a function for generating random numbers with an exponential distribution with the rate lambda; * equivalent to time between events in a Poisson process with a mean of 1 / lambda. */ -export function randomExponential(lambda: number): () => number; \ No newline at end of file +export function randomExponential(lambda: number): () => number; diff --git a/d3-random/tsconfig.json b/d3-random/tsconfig.json index 2780de96d9..2e112e521d 100644 --- a/d3-random/tsconfig.json +++ b/d3-random/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-random-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-random-tests.ts" + ] +} diff --git a/d3-scale/d3-scale-tests.ts b/d3-scale/d3-scale-tests.ts index acbb0c1851..7f77472664 100644 --- a/d3-scale/d3-scale-tests.ts +++ b/d3-scale/d3-scale-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-scale module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -996,4 +996,4 @@ colorStrings = d3Scale.schemeCategory20; colorStrings = d3Scale.schemeCategory20b; -colorStrings = d3Scale.schemeCategory20c; \ No newline at end of file +colorStrings = d3Scale.schemeCategory20c; diff --git a/d3-scale/index.d.ts b/d3-scale/index.d.ts index c7a5627ed7..fa77f42c0d 100644 --- a/d3-scale/index.d.ts +++ b/d3-scale/index.d.ts @@ -384,7 +384,7 @@ export interface ScalePoint { */ padding(): number; /** - * Sets the outer padding to the specified value which must be in the range [0, 1]. + * Sets the outer padding to the specified value which must be in the range [0, 1]. * The outer padding determines the ratio of the range that is reserved for blank space * before the first point and after the last point. */ diff --git a/d3-scale/tsconfig.json b/d3-scale/tsconfig.json index 71abb0b243..33d6119ad9 100644 --- a/d3-scale/tsconfig.json +++ b/d3-scale/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-scale-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-scale-tests.ts" + ] +} diff --git a/d3-selection/d3-selection-tests.ts b/d3-selection/d3-selection-tests.ts index c4f7f20963..e56005b897 100644 --- a/d3-selection/d3-selection-tests.ts +++ b/d3-selection/d3-selection-tests.ts @@ -1,7 +1,7 @@ /** * Typescript definition tests for d3/d3-selection module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -154,7 +154,7 @@ let documentLinks: d3Selection.Selection = d3Selection.select('svg'); @@ -375,7 +375,7 @@ circles = circles .property('__hitchhikersguide__', { value: 42, survival: 'towel' - }); // any + }); // any circles = circles .property('__hitchhikersguide__', function (d, i, group) { @@ -542,7 +542,7 @@ circles2 = d3Selection.select('#svg2') circles2 = circles2 // returned update selection has the same type parameters as original selection, if data type is unchanged .data(endCircleData, function (d) { return d.nodeId; }); -// circles2.data(endCircleData, function (d) { return d.nodeId; }); // fails, forced data type parameter and data argument mismatch +// circles2.data(endCircleData, function (d) { return d.nodeId; }); // fails, forced data type parameter and data argument mismatch // ENTER-selection ----------------------------------------------------------------- @@ -612,7 +612,7 @@ tr = d3Selection.select('body') // .data([{test: 1}, {test: 2}]) // fails, using this data statement instead, would fail because of its type parameter not being met by input .enter().append('tr'); -nMatrix = tr.data(); // i.e. matrix +nMatrix = tr.data(); // i.e. matrix let td: d3Selection.Selection; td = tr.selectAll() @@ -633,7 +633,7 @@ let tr2 = d3Selection.select('body') .data(matrix) .enter().append('tr'); -nMatrix = tr2.data(); // i.e. matrix +nMatrix = tr2.data(); // i.e. matrix let td2 = tr2.selectAll('td') .data(function (d) { return d; }) // d : Array inferred (Array[4] of number per parent ) @@ -773,7 +773,7 @@ function enforceMinRadius(selection: d3Selection.Selection):void { // // fails, group element types of selection not compatible: SVGCircleElement v HTMLDivElement diff --git a/d3-selection/index.d.ts b/d3-selection/index.d.ts index 20c9ad190b..08c07e3f7c 100644 --- a/d3-selection/index.d.ts +++ b/d3-selection/index.d.ts @@ -82,7 +82,7 @@ export interface TransitionLike { // -------------------------------------------------------------------------- // NB: Note that, d3.select does not generate the same parent element, when targeting the same DOM element with string selector -// or node element +// or node element export function select(selector: string): Selection; export function select(node: GElement): Selection; @@ -273,7 +273,7 @@ export interface Local { set(node: Element, value: any): Element; /** * Obtain a string with the internally assigned property name for the local - * which is used to store the value on a node + * which is used to store the value on a node */ toString(): string; } @@ -306,8 +306,8 @@ export type NamespaceLocalObject = { * name of local by parsing a shorthand string "prefix:local". If the prefix * does not exist in the "namespaces" object provided by d3-selection, then * the local name is returned as a simple string. - * - * @param prefixedLocal A string composed of the namespace prefix and local + * + * @param prefixedLocal A string composed of the namespace prefix and local * name separated by colon, e.g. "svg:text". */ export function namespace(prefixedLocal: string): NamespaceLocalObject | string; @@ -345,7 +345,7 @@ export function window(DOMNode: Window | Document | Element): Window; * Returns a closure structure which can be invoked in the 'this' context * of a group element. Depending on the use of namespacing, the NewGElement can be HTMLElement, * SVGElement an extension thereof or an element from a different namespace. - * + * * @param elementName Name of the element to be added */ export function creator(elementName: string): (this: BaseType) => NewGElement; @@ -353,7 +353,7 @@ export function creator(elementName: string): (this /** * Returns a closure structure which can be invoked in the 'this' context * of a group element. Returns true, if the element in the 'this' context matches the selector - * + * * @param selector A valid selector string */ export function matcher(selector: string): (this: BaseType) => boolean; diff --git a/d3-selection/tsconfig.json b/d3-selection/tsconfig.json index 8e39ae363a..4dc36b99e3 100644 --- a/d3-selection/tsconfig.json +++ b/d3-selection/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-selection-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-selection-tests.ts" + ] +} diff --git a/d3-shape/d3-shape-tests.ts b/d3-shape/d3-shape-tests.ts index 3f856e88ee..24bf76851c 100644 --- a/d3-shape/d3-shape-tests.ts +++ b/d3-shape/d3-shape-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-shape module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -1145,4 +1145,4 @@ order = d3Shape.stackOrderReverse(seriesAnyAny); d3Shape.stackOffsetExpand(seriesAnyAny, order); d3Shape.stackOffsetNone(seriesAnyAny, order); d3Shape.stackOffsetSilhouette(seriesAnyAny, order); -d3Shape.stackOffsetWiggle(seriesAnyAny, order); \ No newline at end of file +d3Shape.stackOffsetWiggle(seriesAnyAny, order); diff --git a/d3-shape/tsconfig.json b/d3-shape/tsconfig.json index 15fde27517..be2622a32c 100644 --- a/d3-shape/tsconfig.json +++ b/d3-shape/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-shape-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-shape-tests.ts" + ] +} diff --git a/d3-time-format/d3-time-format-tests.ts b/d3-time-format/d3-time-format-tests.ts index 14283c6b26..547a77aabe 100644 --- a/d3-time-format/d3-time-format-tests.ts +++ b/d3-time-format/d3-time-format-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-time-format module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. diff --git a/d3-time-format/index.d.ts b/d3-time-format/index.d.ts index 305f7ab2f7..425a37b48d 100644 --- a/d3-time-format/index.d.ts +++ b/d3-time-format/index.d.ts @@ -74,4 +74,4 @@ export function utcParse(specifier: string): (dateString: string) => (Date | nul export function isoFormat(date: Date): string; -export function isoParse(dateString: string): Date; \ No newline at end of file +export function isoParse(dateString: string): Date; diff --git a/d3-time-format/tsconfig.json b/d3-time-format/tsconfig.json index 1845d2369a..a51247265c 100644 --- a/d3-time-format/tsconfig.json +++ b/d3-time-format/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-time-format-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-time-format-tests.ts" + ] +} diff --git a/d3-time/d3-time-tests.ts b/d3-time/d3-time-tests.ts index 8b9df54550..da765f75f4 100644 --- a/d3-time/d3-time-tests.ts +++ b/d3-time/d3-time-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-time module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -210,4 +210,4 @@ dateArray = d3Time.utcMonths(start, end, 3); countableI = d3Time.utcYear; dateArray = d3Time.utcYears(start, end); -dateArray = d3Time.utcYears(start, end, 2); \ No newline at end of file +dateArray = d3Time.utcYears(start, end, 2); diff --git a/d3-time/tsconfig.json b/d3-time/tsconfig.json index df517fbb33..58b3b582e2 100644 --- a/d3-time/tsconfig.json +++ b/d3-time/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-time-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-time-tests.ts" + ] +} diff --git a/d3-timer/d3-timer-tests.ts b/d3-timer/d3-timer-tests.ts index e3aa086e18..d3e755ede1 100644 --- a/d3-timer/d3-timer-tests.ts +++ b/d3-timer/d3-timer-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-timer module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. diff --git a/d3-timer/index.d.ts b/d3-timer/index.d.ts index 6810f988cc..7d0cef9212 100644 --- a/d3-timer/index.d.ts +++ b/d3-timer/index.d.ts @@ -4,9 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** - * Returns the current time as defined by performance.now if available, and Date.now if not. + * Returns the current time as defined by performance.now if available, and Date.now if not. * The current time is updated at the start of a frame; it is thus consistent during the frame, and any timers scheduled during the same frame will be synchronized. - * If this method is called outside of a frame, such as in response to a user event, the current time is calculated and then fixed until the next frame, + * If this method is called outside of a frame, such as in response to a user event, the current time is calculated and then fixed until the next frame, * again ensuring consistent timing during event handling. */ export function now(): number; @@ -33,7 +33,7 @@ export interface Timer { /** * Schedules and returns a new timer, invoking the specified callback repeatedly until the timer is stopped. * The callback is passed the (apparent) elapsed time since the timer became active. - * + * * @param callback A callback function to be invoked and passed in the apparent * elapsed time since the timer became active in milliseconds. * @param [delay] An optional numeric delay in milliseconds (default = 0) relative to time. @@ -49,7 +49,7 @@ export function timerFlush(): void; /** * Schedules and returns a new timer, invoking the specified callback. The timer is stopped automatically * on its first callback. The callback is passed the (apparent) elapsed time since the timer became active. - * + * * @param callback A callback function to be invoked and passed in the apparent * elapsed time since the timer became active in milliseconds. * @param [delay] An optional numeric delay in milliseconds (default = 0) relative to time. @@ -61,7 +61,7 @@ export function timeout(callback: (elapsed: number) => void, delay?: number, tim * Schedules and returns a new timer, invoking the specified callback repeatedly every 'delay' milliseconds * until the timer is stopped. * The callback is passed the (apparent) elapsed time since the timer became active. - * + * * @param callback A callback function to be invoked and passed in the apparent * elapsed time since the timer became active in milliseconds. * @param [delay] An optional numeric delay in milliseconds between repeat invocations of the callback. diff --git a/d3-timer/tsconfig.json b/d3-timer/tsconfig.json index b5380fac1d..c9381563f4 100644 --- a/d3-timer/tsconfig.json +++ b/d3-timer/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-timer-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-timer-tests.ts" + ] +} diff --git a/d3-transition/d3-transition-tests.ts b/d3-transition/d3-transition-tests.ts index e7531edf02..e02fc19fdc 100644 --- a/d3-transition/d3-transition-tests.ts +++ b/d3-transition/d3-transition-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-transition module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -329,7 +329,7 @@ function changeExitColor(transition: d3Transition.Transition): void { // // fails, group element types of selection not compatible: SVGCircleElement v HTMLDivElement @@ -388,4 +388,4 @@ updateTransitionActive = d3Transition.active; export function transition(transition: Transition): Transition; - diff --git a/d3-transition/tsconfig.json b/d3-transition/tsconfig.json index 97fb28d1c8..7c77f746da 100644 --- a/d3-transition/tsconfig.json +++ b/d3-transition/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-transition-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-transition-tests.ts" + ] +} diff --git a/d3-voronoi/d3-voronoi-tests.ts b/d3-voronoi/d3-voronoi-tests.ts index 3c674e290d..87617519c3 100644 --- a/d3-voronoi/d3-voronoi-tests.ts +++ b/d3-voronoi/d3-voronoi-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-voronoi module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. @@ -223,4 +223,4 @@ links = voronoiDiagram.links(); link = links[0]; testDatum = link.source; -testDatum = link.target; \ No newline at end of file +testDatum = link.target; diff --git a/d3-voronoi/index.d.ts b/d3-voronoi/index.d.ts index 2897dd26e6..8b3ff002e4 100644 --- a/d3-voronoi/index.d.ts +++ b/d3-voronoi/index.d.ts @@ -11,14 +11,14 @@ /** * The Point type is defined as a cue that the array is strictly of type [number, number] with two elements * for x and y coordinates. However, it is used as a base for interface definitions, and [number, number] - * cannot be extended. + * cannot be extended. */ export type VoronoiPoint = Array; /** * The PointPair type is defined as a cue that the array is strictly of type [[number, number], [number, number]] with two elements, one - * for each point containing the respective x and y coordinates. However, it is used as a base for interface definitions, and - * [[number, number], [number, number]]cannot be extended. + * for each point containing the respective x and y coordinates. However, it is used as a base for interface definitions, and + * [[number, number], [number, number]]cannot be extended. */ export type VoronoiPointPair = Array<[number, number]> // [Point, Point]; @@ -78,4 +78,4 @@ export interface VoronoiDiagram { // -------------------------------------------------------------------------- export function voronoi(): VoronoiLayout<[number, number]>; -export function voronoi(): VoronoiLayout; \ No newline at end of file +export function voronoi(): VoronoiLayout; diff --git a/d3-voronoi/tsconfig.json b/d3-voronoi/tsconfig.json index 09a52a8a4c..100510809d 100644 --- a/d3-voronoi/tsconfig.json +++ b/d3-voronoi/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-voronoi-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-voronoi-tests.ts" + ] +} diff --git a/d3-zoom/d3-zoom-tests.ts b/d3-zoom/d3-zoom-tests.ts index 446d2de37f..0a5d32d4fe 100644 --- a/d3-zoom/d3-zoom-tests.ts +++ b/d3-zoom/d3-zoom-tests.ts @@ -1,6 +1,6 @@ /** * Typescript definition tests for d3/d3-zoom module - * + * * Note: These tests are intended to test the definitions only * in the sense of typing and call signature consistency. They * are not intended as functional tests. diff --git a/d3-zoom/index.d.ts b/d3-zoom/index.d.ts index 5bb2bc8277..f3352168fb 100644 --- a/d3-zoom/index.d.ts +++ b/d3-zoom/index.d.ts @@ -135,4 +135,4 @@ export interface ZoomTransform { export function zoomTransform(node: ZoomedElementBaseType): ZoomTransform; -export const zoomIdentity: ZoomTransform; \ No newline at end of file +export const zoomIdentity: ZoomTransform; diff --git a/d3-zoom/tsconfig.json b/d3-zoom/tsconfig.json index 1de0d73aad..f2e715aabf 100644 --- a/d3-zoom/tsconfig.json +++ b/d3-zoom/tsconfig.json @@ -1,19 +1,19 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "d3-zoom-tests.ts" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-zoom-tests.ts" + ] +}