Skip to content

Commit cc22b15

Browse files
committed
Merge pull request DefinitelyTyped#4184 from adidahiya/drop
Add 'element' and 'tether' to Drop typings
2 parents 583c152 + 391ff63 commit cc22b15

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drop/drop-tests.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ d.remove();
2222
d.toggle();
2323
d.position();
2424
d.destroy();
25+
d.element.appendChild(document.createElement("div"));
26+
d.tether.position();
2527

2628
d.on("open", () => null);
2729
d.on("close", () => null);

drop/drop.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ declare module drop {
3030

3131
interface Drop {
3232
content: HTMLElement;
33+
element: HTMLElement;
34+
tether: tether.Tether;
3335
open(): void;
3436
close(): void;
3537
remove(): void;

0 commit comments

Comments
 (0)