]> source.dussan.org Git - svg.js.git/commitdiff
Fix typings for arrays of points implemented as array. (Ex.: [[0, 0], [100, 100]])
authorMakarov Alexandr <next.meaning@gmail.com>
Sun, 19 Nov 2017 09:56:50 +0000 (19:56 +1000)
committerMakarov Alexandr <next.meaning@gmail.com>
Sun, 19 Nov 2017 09:56:50 +0000 (19:56 +1000)
svg.js.d.ts

index befa2b6a639a3a3f741daeba9ae410aa03e84830..37edad854ed0f3e1535e184d2b6c8eb91112e123 100644 (file)
@@ -423,7 +423,8 @@ declare namespace svgjs {
 \r
     // line.js\r
     interface ArrayPoint extends Array<number> { }\r
-    type PointArrayAlias = ArrayPoint | number[] | PointArray | string;\r
+    type ArrayAsPoint = [number, number];\r
+    type PointArrayAlias = ArrayPoint | number[] | ArrayAsPoint[] | PointArray | string;\r
     \r
     export interface Line extends Shape {\r
         new (): Line;\r