diff options
author | Makarov Alexandr <next.meaning@gmail.com> | 2017-11-19 19:56:50 +1000 |
---|---|---|
committer | Makarov Alexandr <next.meaning@gmail.com> | 2017-11-19 19:56:50 +1000 |
commit | b913c7dd3af1921b7f343447ea884599cb4fb99d (patch) | |
tree | c318608ba46125b257b9e01ae94999e8be860e53 | |
parent | 22d7012bf3bc731c470f6b26651aec93fde04dcc (diff) | |
download | svg.js-b913c7dd3af1921b7f343447ea884599cb4fb99d.tar.gz svg.js-b913c7dd3af1921b7f343447ea884599cb4fb99d.zip |
Fix typings for arrays of points implemented as array. (Ex.: [[0, 0], [100, 100]])
-rw-r--r-- | svg.js.d.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts index befa2b6..37edad8 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -423,7 +423,8 @@ declare namespace svgjs { // line.js
interface ArrayPoint extends Array<number> { }
- type PointArrayAlias = ArrayPoint | number[] | PointArray | string;
+ type ArrayAsPoint = [number, number];
+ type PointArrayAlias = ArrayPoint | number[] | ArrayAsPoint[] | PointArray | string;
export interface Line extends Shape {
new (): Line;
|