Skip to content
Permalink
Browse files

fix(types): add missing `reference` and `popper` class properties (#759)

  • Loading branch information...
medfreeman authored and FezVrasta committed Mar 13, 2019
1 parent bd1faa9 commit 4a8cc144bc581ee4dfed51b3e1b8f385738801d9
Showing with 7 additions and 2 deletions.
  1. +2 −0 packages/popper/index.d.ts
  2. +3 −0 packages/popper/index.js.flow
  3. +2 −2 packages/popper/src/index.js
@@ -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);

@@ -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,
@@ -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
*/

0 comments on commit 4a8cc14

Please sign in to comment.
You can’t perform that action at this time.