summaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-06-15 13:07:12 +1000
committerGitHub <noreply@github.com>2020-06-15 13:07:12 +1000
commitdccb11974fe1fc96f68e3e4eca2a1fd7f30543c2 (patch)
tree8ef5e829b3ffeea20e29b6238a2a16825fa3915d /svg.js.d.ts
parentec1a37312f3f555033c377d9e7c52f2570f2ae27 (diff)
parent7adda38c70690be1bfee71b8e8c9f13d72455141 (diff)
downloadsvg.js-dccb11974fe1fc96f68e3e4eca2a1fd7f30543c2.tar.gz
svg.js-dccb11974fe1fc96f68e3e4eca2a1fd7f30543c2.zip
Merge pull request #1129 from josepaiva94/types
Fix types for List and ForeignObject (same line separators)
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r--svg.js.d.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index f826335..1bc0ccf 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -555,13 +555,13 @@ declare module "@svgdotjs/svg.js" {
to(a: any): Morphable;
}
- type ListEachCallback<T> = (el: T, index: number, list: List<T>) => any
+ type ListEachCallback<T> = (el: T, index: number, list: List<T>) => any;
// List.js
class List<T> extends BuiltInArray<T> {
- each(fn: ListEachCallback<T>): List<any>
- each(name: string, ...args: any[]): List<any>
- toArray(): T[]
+ each(fn: ListEachCallback<T>): List<any>;
+ each(name: string, ...args: any[]): List<any>;
+ toArray(): T[];
}
class Eventobject {
@@ -1405,9 +1405,9 @@ declare module "@svgdotjs/svg.js" {
// ForeignObject.js
class ForeignObject extends Element {
- constructor(node?: SVGForeignObjectElement, attrs?: object)
- constructor(attrs?: object)
- add(element: Dom, i?: number): ForeignObject
+ constructor(node?: SVGForeignObjectElement, attrs?: object);
+ constructor(attrs?: object);
+ add(element: Dom, i?: number): this;
}
// image.js