Skip to content

Commit

Permalink
d3-countour: Enable strictFunctionTypes (DefinitelyTyped#20375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy authored and weswigham committed Oct 11, 2017
1 parent 153f7f5 commit e042aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/d3-contour/d3-contour-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function goldsteinPrice(x: number, y: number) {

let size: [number, number];
let boolFlag: boolean;
const thresholdArrayGen: ThresholdArrayGenerator<number> = (values: number[], min: number, max: number) => {
const thresholdArrayGen: ThresholdArrayGenerator<number> = (values: ArrayLike<number>, min?: number, max?: number) => {
let thresholds: number[];
thresholds = [values[1], values[2], values[4]];
return thresholds;
Expand Down
2 changes: 1 addition & 1 deletion types/d3-contour/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": false,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
Expand Down

0 comments on commit e042aa6

Please sign in to comment.