quick fix for typings removing default export

This commit is contained in:
Stephen Laughton 2016-05-29 15:53:41 -07:00
parent 6455045fd4
commit d3267105d9

20
konva.d.ts vendored
View File

@ -1,4 +1,4 @@
declare module Konva { declare module "Konva" {
var pixelRatio : number; var pixelRatio : number;
var dragDistance: number; var dragDistance: number;
@ -53,14 +53,14 @@ declare module Konva {
} }
export class Animation { export class Animation {
constructor(func: Function, layers?: Konva.Layer[]); constructor(func: Function, layers?: Layer[]);
constructor(func: Function, layer?: Konva.Layer); constructor(func: Function, layer?: Layer);
addLayer(layer: Konva.Layer) : boolean; addLayer(layer: Layer) : boolean;
getLayers() : Konva.Layer[]; getLayers() : Layer[];
isRunning() : boolean; isRunning() : boolean;
setLayers(layers : Konva.Layer[]) : Animation; setLayers(layers : Layer[]) : Animation;
setLayers(layer : Konva.Layer) : Animation; setLayers(layer : Layer) : Animation;
start() : Animation; start() : Animation;
stop() : Animation; stop() : Animation;
} }
@ -511,7 +511,7 @@ declare module Konva {
clearTrace(): void; clearTrace(): void;
fillShape(shape: Shape): void; fillShape(shape: Shape): void;
fillStrokeShape(shape: Shape): void; fillStrokeShape(shape: Shape): void;
getCanvas() : Konva.Canvas; getCanvas() : Canvas;
getTrace(relaxed: boolean): string; getTrace(relaxed: boolean): string;
reset(): void; reset(): void;
moveTo(x : number, y : number) : void; moveTo(x : number, y : number) : void;
@ -802,7 +802,7 @@ declare module Konva {
class Collection { class Collection {
[i : number] : any; [i : number] : any;
static toCollection(arr: any[]): Collection; static toCollection(arr: any[]): Collection;
each(f: (el : Konva.Node) => void): void; each(f: (el : Node) => void): void;
toArray() : any[]; toArray() : any[];
length: number; length: number;
} }
@ -826,5 +826,3 @@ declare module Konva {
} }
} }
export default Konva;