summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalte Fastrup Lyngsø <malte.lyngsoe@gmail.com>2017-06-06 12:30:44 +0200
committerMalte Fastrup Lyngsø <malte.lyngsoe@gmail.com>2017-06-06 12:30:44 +0200
commita52b5dd523ef4d1f67e85115792b035d171fac76 (patch)
treeb18cf2fcb9026bf7fd8ce3f25af7330687c730be
parent4e0c3272cc231ee1522a0efda87f91cb9352084c (diff)
downloadsvg.js-a52b5dd523ef4d1f67e85115792b035d171fac76.tar.gz
svg.js-a52b5dd523ef4d1f67e85115792b035d171fac76.zip
Syntax fixes in TypeScript declaration file
-rw-r--r--svg.js.d.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index eba2f29..f87f831 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -216,7 +216,7 @@ declare namespace svgjs {
namespace(): this;
defs(): Defs;
parent(): HTMLElement;
- spof(spof): this;
+ spof(): this;
remove(): this;
}
interface Library { Doc: Doc; }
@@ -364,7 +364,7 @@ declare namespace svgjs {
at(opts: StopProperties): Stop;
update(block?: Function): this;
fill(): string;
- fill(...any): never;
+ fill(...params: any[]): never;
toString(): string;
from(x: number, y: number): this;
to(x: number, y: number): this;
@@ -393,7 +393,7 @@ declare namespace svgjs {
to(): string;
show(target: string): this;
show(): string;
- show(...any): never;
+ show(...params: any[]): never;
target(target: string): this;
target(): string;
}
@@ -638,7 +638,7 @@ declare namespace svgjs {
export interface Pattern extends Container {
new (): Pattern;
fill(): string;
- fill(...any): never;
+ fill(...rest: any[]): never;
update(block: (pattern: Pattern) => void): this;
toString(): string;
}
@@ -916,7 +916,7 @@ declare namespace svgjs {
f?: number;
}
export interface Transformation {
- new (...Transform): Transformation;
+ new (...transform: Transform[]): Transformation;
new (source: Transform, inversed?: boolean): Transformation;
at(pos: number): Matrix;
undo(transform: Transform): this