From: Makarov Alexandr Date: Mon, 20 Nov 2017 08:38:46 +0000 (+1000) Subject: Fix typings for array of ArrayPoint like [[0, 0], [325, 235]]. X-Git-Tag: 2.6.5~16^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=140f15acd6c9791e4bee90c218f56697a0091816;p=svg.js.git Fix typings for array of ArrayPoint like [[0, 0], [325, 235]]. --- diff --git a/svg.js.d.ts b/svg.js.d.ts index 37edad8..bfa056d 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -423,8 +423,7 @@ declare namespace svgjs { // line.js interface ArrayPoint extends Array { } - type ArrayAsPoint = [number, number]; - type PointArrayAlias = ArrayPoint | number[] | ArrayAsPoint[] | PointArray | string; + type PointArrayAlias = ArrayPoint[] | number[] | PointArray | string; export interface Line extends Shape { new (): Line;