From a52b5dd523ef4d1f67e85115792b035d171fac76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Malte=20Fastrup=20Lyngs=C3=B8?= Date: Tue, 6 Jun 2017 12:30:44 +0200 Subject: [PATCH] Syntax fixes in TypeScript declaration file --- svg.js.d.ts | 10 +++++----- 1 file 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 -- 2.39.5