[Drop] Change return type of createContext to use typeof

This commit is contained in:
Péter Kovács Q
2016-08-08 10:41:19 +02:00
parent 3df433e5dc
commit 5dcd99320d
+1 -5
View File
@@ -27,7 +27,7 @@ declare class Drop {
public once(event: string, handler: Function, context?: any): void;
public off(event: string, handler?: Function): void;
public static createContext(options: Drop.IDropContextOptions): Drop.IDropConstructor;
public static createContext(options: Drop.IDropContextOptions): typeof Drop;
}
declare namespace Drop {
@@ -54,10 +54,6 @@ declare namespace Drop {
hoverCloseDelay?: number;
tetherOptions?: Tether.ITetherOptions;
}
interface IDropConstructor {
new (options: Drop.IDropOptions): Drop;
}
}
declare module "drop" {