-
Notifications
You must be signed in to change notification settings - Fork 29
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-demo-helpers. (#71)
* Generate minimal package.json from bower.json * Update and/or configure type declarations.
- Loading branch information
Showing
7 changed files
with
1,118 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,14 @@ | ||
/** | ||
* 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): | ||
* demo-pages-shared-styles.html | ||
*/ | ||
|
||
/// <reference path="../polymer/types/polymer.d.ts" /> | ||
/// <reference path="../iron-flex-layout/iron-flex-layout.d.ts" /> | ||
/// <reference path="../font-roboto/roboto.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,59 @@ | ||
/** | ||
* 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): | ||
* demo-snippet.html | ||
*/ | ||
|
||
/// <reference path="../polymer/types/polymer.d.ts" /> | ||
/// <reference path="../marked-element/marked-element.d.ts" /> | ||
/// <reference path="../prism-element/prism-highlighter.d.ts" /> | ||
/// <reference path="../prism-element/prism-theme-default.d.ts" /> | ||
|
||
/** | ||
* `demo-snippet` is a helper element that displays the source of a code snippet and | ||
* its rendered demo. It can be used for both native elements and | ||
* Polymer elements. | ||
* | ||
* Example of a native element demo | ||
* | ||
* <demo-snippet> | ||
* <template> | ||
* <input type="date"> | ||
* </template> | ||
* </demo-snippet> | ||
* | ||
* Example of a Polymer <paper-checkbox> demo | ||
* | ||
* <demo-snippet> | ||
* <template> | ||
* <paper-checkbox>Checkbox</paper-checkbox> | ||
* <paper-checkbox checked>Checkbox</paper-checkbox> | ||
* </template> | ||
* </demo-snippet> | ||
* | ||
* ### Styling | ||
* | ||
* The following custom properties and mixins are available for styling: | ||
* | ||
* Custom property | Description | Default | ||
* ----------------|-------------|---------- | ||
* `--demo-snippet` | Mixin applied to the entire element | `{}` | ||
* `--demo-snippet-demo` | Mixin applied to just the demo section | `{}` | ||
* `--demo-snippet-code` | Mixin applied to just the code section | `{}` | ||
*/ | ||
interface DemoSnippetElement extends Polymer.Element { | ||
_markdown: string|null|undefined; | ||
attached(): void; | ||
detached(): void; | ||
_updateMarkdown(): void; | ||
_copyToClipboard(): any; | ||
_resetCopyButtonState(): void; | ||
} | ||
|
||
interface HTMLElementTagNameMap { | ||
"demo-snippet": DemoSnippetElement; | ||
} |
Oops, something went wrong.