mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Merge pull request #25973 from denisname/d3-timer-strictNullChecks
d3-timer Activate strictNullChecks
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Vendored
-6
@@ -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;
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
|
||||
Reference in New Issue
Block a user