mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Merge pull request #10482 from elektromodulator/master
[Drop] Fix issue where createContext did not return constructable type
This commit is contained in:
@@ -36,3 +36,11 @@ var e = new Drop({
|
||||
content: () => greenBox
|
||||
});
|
||||
|
||||
var Tooltip = Drop.createContext({
|
||||
classPrefix: 'tooltip'
|
||||
});
|
||||
|
||||
var t = new Tooltip({
|
||||
target: yellowBox,
|
||||
content: () => greenBox
|
||||
});
|
||||
|
||||
Vendored
+1
-2
@@ -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;
|
||||
public static createContext(options: Drop.IDropContextOptions): typeof Drop;
|
||||
}
|
||||
|
||||
declare namespace Drop {
|
||||
@@ -59,4 +59,3 @@ declare namespace Drop {
|
||||
declare module "drop" {
|
||||
export = Drop;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user