diff options
author | Makarov Alexandr <next.meaning@gmail.com> | 2017-11-20 18:38:46 +1000 |
---|---|---|
committer | Makarov Alexandr <next.meaning@gmail.com> | 2017-11-20 18:38:46 +1000 |
commit | 140f15acd6c9791e4bee90c218f56697a0091816 (patch) | |
tree | 9c7905069fccc4c8b1f05e34062a08fb534913cf | |
parent | b913c7dd3af1921b7f343447ea884599cb4fb99d (diff) | |
download | svg.js-140f15acd6c9791e4bee90c218f56697a0091816.tar.gz svg.js-140f15acd6c9791e4bee90c218f56697a0091816.zip |
Fix typings for array of ArrayPoint like [[0, 0], [325, 235]].
-rw-r--r-- | svg.js.d.ts | 3 |
1 files changed, 1 insertions, 2 deletions
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<number> { }
- type ArrayAsPoint = [number, number];
- type PointArrayAlias = ArrayPoint | number[] | ArrayAsPoint[] | PointArray | string;
+ type PointArrayAlias = ArrayPoint[] | number[] | PointArray | string;
export interface Line extends Shape {
new (): Line;
|