diff --git a/src/Util.ts b/src/Util.ts index 94102d642..a9b4906ff 100644 --- a/src/Util.ts +++ b/src/Util.ts @@ -1,6 +1,6 @@ import { Konva } from './Global'; import { Context } from './Context'; -import { IRect, RGB, RGBA, Vector2d } from './types'; +import { IRect, RGB, Vector2d } from './types'; /* * Last updated November 2011 diff --git a/src/filters/Enhance.ts b/src/filters/Enhance.ts index 2bc749430..887afba83 100644 --- a/src/filters/Enhance.ts +++ b/src/filters/Enhance.ts @@ -2,7 +2,7 @@ import { Factory } from '../Factory'; import { Node, Filter } from '../Node'; import { getNumberValidator } from '../Validators'; -function remap(fromValue, fromMin, fromMax, toMin, toMax) { +function remap(fromValue: number, fromMin: number, fromMax: number, toMin: number, toMax: number) { // Compute the range of the data var fromRange = fromMax - fromMin, toRange = toMax - toMin,