Merge pull request #25973 from denisname/d3-timer-strictNullChecks

d3-timer Activate strictNullChecks
This commit is contained in:
Benjamin Lichtman
2018-05-31 20:58:52 -07:00
committed by GitHub
4 changed files with 4 additions and 9 deletions
+1
View File
@@ -48,6 +48,7 @@ cHSV = cHSV.darker();
cHSV = cHSV.darker(0.2);
displayable = cHSV.displayable();
cString = cHSV.toString();
cString = cHSV.hex();
console.log('Channels = (h : %d, s: %d, v: %d)', cHSV.h, cHSV.s, cHSV.v);
console.log('Opacity = %d', cHSV.opacity);
-6
View File
@@ -68,12 +68,6 @@ export interface HSVColor extends Color {
* Returns the RGB equivalent of this color.
*/
rgb(): RGBColor;
/**
* Returns a hexadecimal string representing this color.
* If this color is not displayable, a suitable displayable color is returned instead. For example, RGB channel values greater than 255 are clamped to 255.
*/
hex(): string;
}
export const hsv: HSVColorFactory;
+2 -2
View File
@@ -3,7 +3,7 @@
// 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
// Last module patch version validated against: 1.0.2
// Last module patch version validated against: 1.0.7
/**
* Returns the current time as defined by performance.now if available, and Date.now if not.
@@ -44,7 +44,7 @@ export interface Timer {
export function timer(callback: (elapsed: number) => void, delay?: number, time?: number): Timer;
/**
* Immediately invoke any eligible timer callbacks
* Immediately invoke any eligible timer callbacks.
*/
export function timerFlush(): void;
+1 -1
View File
@@ -7,7 +7,7 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [