Skip to content

Commit

Permalink
fix(types): add missing reference and popper class properties (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
medfreeman authored and FezVrasta committed Mar 13, 2019
1 parent bd1faa9 commit 4a8cc14
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/popper/index.d.ts
Expand Up @@ -158,6 +158,8 @@ declare class Popper {
static Defaults: PopperOptions;

options: PopperOptions;
popper: Element;
reference: Element | ReferenceObject;

constructor(reference: Element | ReferenceObject, popper: Element, options?: PopperOptions);

Expand Down
3 changes: 3 additions & 0 deletions packages/popper/index.js.flow
Expand Up @@ -142,6 +142,9 @@ declare module 'popper.js' {
declare class Popper {
static placements: Placement;

popper: Element;
reference: Element | ReferenceObject;

constructor(
reference: Element | ReferenceObject,
popper: Element,
Expand Down
4 changes: 2 additions & 2 deletions packages/popper/src/index.js
Expand Up @@ -14,8 +14,8 @@ export default class Popper {
/**
* Creates a new Popper.js instance.
* @class Popper
* @param {HTMLElement|referenceObject} reference - The reference element used to position the popper
* @param {HTMLElement} popper - The HTML element used as the popper
* @param {Element|referenceObject} reference - The reference element used to position the popper
* @param {Element} popper - The HTML / XML element used as the popper
* @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
* @return {Object} instance - The generated Popper.js instance
*/
Expand Down

0 comments on commit 4a8cc14

Please sign in to comment.