diff options
author | pragdave <dave@pragdave.me> | 2020-05-31 11:04:10 -0500 |
---|---|---|
committer | pragdave <dave@pragdave.me> | 2020-05-31 11:04:10 -0500 |
commit | 8cc714a53bc2e1cf531eb50475285c2a775339aa (patch) | |
tree | e15d10c1e8f9e72fe3ae855ae5e34fa5b9dd4854 /svg.js.d.ts | |
parent | 8383e46f0b8b8b9f7908716cee102bf63d3d2056 (diff) | |
download | svg.js-8cc714a53bc2e1cf531eb50475285c2a775339aa.tar.gz svg.js-8cc714a53bc2e1cf531eb50475285c2a775339aa.zip |
slowly iterating towards List nirvana. FO still pending...
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r-- | svg.js.d.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts index 8cb3252..99ec3b1 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -548,12 +548,12 @@ declare module "@svgdotjs/svg.js" { to(a: any): Morphable;
}
- type ListEachCallback<T> = (el: T, index: number, list: T[]) => any
+ type ListEachCallback<T> = (el: T, index: number, list: List<T>) => any
// List.js
class List<T> extends BuiltInArray<T> implements ElementAlias {
- each(fn: ListEachCallback<T>): any[]
- each(name: string, ...args: any[]): any[]
+ each(fn: ListEachCallback<T>): List<any>
+ each(name: string, ...args: any[]): List<any>
toArray(): T[]
}
@@ -1386,7 +1386,7 @@ declare module "@svgdotjs/svg.js" { // ForeignObject.js
class ForeignObject extends Element {
constructor(node: HTMLElement, attrs?: any)
- add(element: Dom) : ForeignObject
+ add(element: Dom, attrs?: any) : ForeignObject
}
// image.js
|