-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TypeScript declarations to iron-media-query. (#44)
* Generate minimal package.json from bower.json * Update and/or configure type declarations.
- Loading branch information
Showing
5 changed files
with
1,047 additions
and
0 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,2 +1,3 @@ | ||
bower_components* | ||
bower-*.json | ||
node_modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* DO NOT EDIT | ||
* | ||
* This file was automatically generated by | ||
* https://github.com/Polymer/gen-typescript-declarations | ||
* | ||
* To modify these typings, edit the source file(s): | ||
* iron-media-query.html | ||
*/ | ||
|
||
/// <reference path="../polymer/types/polymer.d.ts" /> | ||
|
||
/** | ||
* `iron-media-query` can be used to data bind to a CSS media query. | ||
* The `query` property is a bare CSS media query. | ||
* The `query-matches` property is a boolean representing whether the page matches that media query. | ||
* | ||
* Example: | ||
* | ||
* <iron-media-query query="(min-width: 600px)" query-matches="{{queryMatches}}"></iron-media-query> | ||
*/ | ||
interface IronMediaQueryElement extends Polymer.Element { | ||
|
||
/** | ||
* The Boolean return value of the media query. | ||
*/ | ||
readonly queryMatches: boolean|null|undefined; | ||
|
||
/** | ||
* The CSS media query to evaluate. | ||
*/ | ||
query: string|null|undefined; | ||
|
||
/** | ||
* If true, the query attribute is assumed to be a complete media query | ||
* string rather than a single media feature. | ||
*/ | ||
full: boolean|null|undefined; | ||
_boundMQHandler: (p0: MediaQueryList|null) => any; | ||
_mq: MediaQueryList|null; | ||
attached(): void; | ||
detached(): void; | ||
_add(): void; | ||
_remove(): void; | ||
queryChanged(): void; | ||
queryHandler(mq: any): void; | ||
} | ||
|
||
interface HTMLElementTagNameMap { | ||
"iron-media-query": IronMediaQueryElement; | ||
} |
Oops, something went wrong.