Skip to content

Commit

Permalink
Add TypeScript declarations to iron-label. (#22)
Browse files Browse the repository at this point in the history
* Generate minimal package.json from bower.json
* Update and/or configure type declarations.
  • Loading branch information
aomarks authored Feb 17, 2018
1 parent 7df8e3a commit 4129e0d
Show file tree
Hide file tree
Showing 5 changed files with 1,035 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bower_components*
bower-*.json
node_modules
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ sudo: required
before_script:
- npm install -g polymer-cli
- polymer install --variants
- >-
npm run update-types && git diff --exit-code || (echo -e
'\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run
update-types".' && false)
env:
global:
- secure: >-
Expand Down
39 changes: 39 additions & 0 deletions iron-label.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* 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-label.html
*/

/// <reference path="../polymer/types/polymer.d.ts" />

declare namespace Polymer {

class IronLabel extends Polymer.Element {

/**
* An ID reference to another element that needs to be
* labelled by this `iron-label` element.
*/
for: string|null|undefined;
_forElement: Element|null;
attached(): void;
ready(): void;

/**
* generate a unique id for this element
*/
_generateLabelId(): void;
_findTarget(): any;
_tapHandler(ev: any): void;
_applyLabelledBy(): void;
_forChanged(): void;
}
}

interface HTMLElementTagNameMap {
"iron-label": Polymer.IronLabel;
}
Loading

0 comments on commit 4129e0d

Please sign in to comment.