Skip to content

Commit

Permalink
Update and/or configure type declarations. (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Feb 17, 2018
1 parent 97ec5d4 commit 44b87e1
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 54 deletions.
25 changes: 13 additions & 12 deletions iron-dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,58 +93,59 @@ interface IronDropdownElement extends Polymer.Element, Polymer.IronControlState,

/**
* The element that is contained by the dropdown, if any.
*
*/
containedElement: object|null;
ready(): any;
attached(): any;
detached(): any;
readonly containedElement: any;
ready(): void;
attached(): void;
detached(): void;

/**
* Called when the value of `opened` changes.
* Overridden from `IronOverlayBehavior`
*/
_openedChanged(): any;
_openedChanged(): void;

/**
* Overridden from `IronOverlayBehavior`.
*/
_renderOpened(): any;
_renderOpened(): void;

/**
* Overridden from `IronOverlayBehavior`.
*/
_renderClosed(): any;
_renderClosed(): void;

/**
* Apply focus to focusTarget or containedElement
*/
_applyFocus(): any;
_applyFocus(): void;

/**
* Called when animation finishes on the dropdown (when opening or
* closing). Responsible for "completing" the process of opening or
* closing the dropdown by positioning it or setting its display to
* none.
*/
_onNeonAnimationFinish(): any;
_onNeonAnimationFinish(): void;

/**
* Constructs the final animation config from different properties used
* to configure specific parts of the opening and closing animations.
*/
_updateAnimationConfig(): any;
_updateAnimationConfig(): void;

/**
* Updates the overlay position based on configured horizontal
* and vertical alignment.
*/
_updateOverlayPosition(): any;
_updateOverlayPosition(): void;

/**
* Sets scrollAction according to the value of allowOutsideScroll.
* Prefer setting directly scrollAction.
*/
_allowOutsideScrollChanged(allowOutsideScroll: any): any;
_allowOutsideScrollChanged(allowOutsideScroll: any): void;
}

interface HTMLElementTagNameMap {
Expand Down
72 changes: 31 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "BSD-3-Clause",
"devDependencies": {
"@polymer/gen-typescript-declarations": "^1.1.3",
"@polymer/gen-typescript-declarations": "^1.2.0",
"bower": "^1.8.0"
},
"scripts": {
Expand Down

0 comments on commit 44b87e1

Please sign in to comment.