From 1ad0e4dbc40a504e53aa8bca12e9f918cb95ff5d Mon Sep 17 00:00:00 2001 From: Chris Kelly Date: Mon, 17 Jul 2017 12:17:58 -0600 Subject: [PATCH] Make center point optional on Point.rotate (#18045) * Make center point optional on Point.rotate Since the second parameter is optional (and most don't use it), let's let TS know that one parameter is OK. * Update index.d.ts --- types/paper/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/paper/index.d.ts b/types/paper/index.d.ts index c57b2c0516..45f1ac590f 100644 --- a/types/paper/index.d.ts +++ b/types/paper/index.d.ts @@ -470,7 +470,7 @@ declare module 'paper' { * @param angle - the rotation angle * @param center - the center point of the rotation */ - rotate(angle: number, center: Point): Point; + rotate(angle: number, center?: Point): Point; /** * Transforms the point by the matrix as a new point. The object itself is not modified!