-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Polymer/pr-multi-file
Create a typings file per source file, instead of per package.
- Loading branch information
Showing
38 changed files
with
1,504 additions
and
1,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
lib | ||
src/test/fixtures | ||
/node_modules | ||
/lib | ||
/src/test/fixtures |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/test/goldens/paper-behaviors/paper-button-behavior.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
declare namespace Polymer { | ||
|
||
interface PaperButtonBehavior { | ||
|
||
/** | ||
* The z-depth of this element, from 0-5. Setting to 0 will remove the | ||
* shadow, and each increasing number greater than 0 will be "deeper" | ||
* than the last. | ||
*/ | ||
elevation: number; | ||
hostAttributes: Object|null; | ||
|
||
/** | ||
* In addition to `IronButtonState` behavior, when space key goes down, | ||
* create a ripple down effect. | ||
*/ | ||
_spaceKeyDownHandler(event: KeyboardEvent): any; | ||
|
||
/** | ||
* In addition to `IronButtonState` behavior, when space key goes up, | ||
* create a ripple up effect. | ||
*/ | ||
_spaceKeyUpHandler(event: KeyboardEvent): any; | ||
_calculateElevation(): any; | ||
_computeKeyboardClass(receivedFocusFromKeyboard: any): any; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/test/goldens/paper-behaviors/paper-checked-element-behavior.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
declare namespace Polymer { | ||
|
||
/** | ||
* Use `Polymer.PaperCheckedElementBehavior` to implement a custom element | ||
* that has a `checked` property similar to `Polymer.IronCheckedElementBehavior` | ||
* and is compatible with having a ripple effect. | ||
*/ | ||
interface PaperCheckedElementBehavior { | ||
|
||
/** | ||
* Synchronizes the element's `active` and `checked` state. | ||
*/ | ||
_buttonStateChanged(): any; | ||
|
||
/** | ||
* Synchronizes the element's checked state with its ripple effect. | ||
*/ | ||
_checkedChanged(): any; | ||
} | ||
} |
Oops, something went wrong.