Update drop typings for Drop v0.5.7

This commit is contained in:
Adi Dahiya 2015-04-21 20:03:50 -04:00
parent cb08e83dd8
commit a585282c8a
2 changed files with 11 additions and 3 deletions

View File

@ -10,7 +10,10 @@ var d = new Drop({
constrainToWindow: true,
constrainToScrollParent: true,
classes: "",
tetherOptions: {}
tetherOptions: {},
remove: true,
target: yellowBox,
content: greenBox
});
d.open();
@ -26,3 +29,8 @@ d.once("close", () => null);
d.off("close", () => null);
d.off("open");
var e = new Drop({
target: yellowBox,
content: () => greenBox
});

4
drop/drop.d.ts vendored
View File

@ -1,4 +1,4 @@
// Type definitions for Drop v0.5
// Type definitions for Drop v0.5.7
// Project: http://github.hubspot.com/drop/
// Definitions by: Adi Dahiya <https://github.com/adidahiya>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@ -19,7 +19,7 @@ declare module drop {
interface IDropOptions {
target?: Element;
content?: Element | string | (() => string);
content?: Element | string | ((drop?: Drop) => string) | ((drop?: Drop) => Element);
position?: string;
openOn?: string;
constrainToWindow?: boolean;