Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Update and/or configure type declarations. (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Feb 17, 2018
1 parent 0f1efc1 commit 429a679
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 72 deletions.
116 changes: 53 additions & 63 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.2",
"@polymer/gen-typescript-declarations": "^1.2.0",
"bower": "^1.8.0"
},
"scripts": {
Expand Down
17 changes: 9 additions & 8 deletions paper-menu-button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,32 +155,33 @@ declare class PaperMenuButton extends Polymer.Element {

/**
* The content element that is contained by the menu button, if any.
*
*/
contentElement: object|null;
readonly contentElement: any;

/**
* If the dropdown is open when disabled becomes true, close the
* dropdown.
*
* @param disabled True if disabled, otherwise false.
*/
_disabledChanged(disabled: boolean): any;
_disabledChanged(disabled: boolean): void;

/**
* Toggles the drowpdown content between opened and closed.
*/
toggle(): any;
toggle(): void;

/**
* Make the dropdown content appear as an overlay positioned relative
* to the dropdown trigger.
*/
open(): any;
open(): void;

/**
* Hide the dropdown content.
*/
close(): any;
close(): void;

/**
* When an `iron-select` event is received, the dropdown should
Expand All @@ -189,15 +190,15 @@ declare class PaperMenuButton extends Polymer.Element {
* @param event A CustomEvent instance with type
* set to `"iron-select"`.
*/
_onIronSelect(event: CustomEvent|null): any;
_onIronSelect(event: CustomEvent|null): void;

/**
* Closes the dropdown when an `iron-activate` event is received if
* `closeOnActivate` is true.
*
* @param event A CustomEvent of type 'iron-activate'.
*/
_onIronActivate(event: CustomEvent|null): any;
_onIronActivate(event: CustomEvent|null): void;

/**
* When the dropdown opens, the `paper-menu-button` fires `paper-open`.
Expand All @@ -206,7 +207,7 @@ declare class PaperMenuButton extends Polymer.Element {
* @param opened True if the dropdown is opened, otherwise false.
* @param oldOpened The previous value of `opened`.
*/
_openedChanged(opened: boolean, oldOpened: boolean): any;
_openedChanged(opened: boolean, oldOpened: boolean): void;
}

interface PaperMenuButton extends Polymer.IronA11yKeysBehavior, Polymer.IronControlState {
Expand Down

0 comments on commit 429a679

Please sign in to comment.