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