mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
fixed type specs
This commit is contained in:
1 parent
568c40002e
commit
f7af4e8f6f
1 file changed
+1
-1
@@ -15,7 +15,7 @@ function pointsEqual(p1: Point, p2: Point) {
|
||||
|
||||
var coloursForPoints = new Hashtable<Point, string>({ hashCode: hashPoint, equals: pointsEqual });
|
||||
|
||||
function getColourAt(x, y) {
|
||||
function getColourAt(x: number, y: number) {
|
||||
var point = new Point(x, y);
|
||||
return coloursForPoints.get(point);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user