Browse Source

Syntax fixes in TypeScript declaration file

tags/2.6.3
Malte Fastrup Lyngsø 7 years ago
parent
commit
a52b5dd523
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      svg.js.d.ts

+ 5
- 5
svg.js.d.ts View File

@@ -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

Loading…
Cancel
Save