Skip to content

Commit

Permalink
Add TypeScript declarations to iron-a11y-keys. (#45)
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 20, 2018
1 parent 9e11f62 commit 9a30dcf
Show file tree
Hide file tree
Showing 5 changed files with 1,030 additions and 1 deletion.
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
8 changes: 7 additions & 1 deletion .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 bower 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 All @@ -19,5 +23,7 @@ addons:
- google-chrome-stable
script:
- xvfb-run polymer test
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s ''default''; fi'
- >-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s 'default';
fi
dist: trusty
31 changes: 31 additions & 0 deletions iron-a11y-keys.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* 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-a11y-keys.html
*/

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

interface IronA11yKeysElement extends Polymer.Element, Polymer.IronA11yKeysBehavior {
target: Node|null;

/**
* Space delimited list of keys where each key follows the format:
* `[MODIFIER+]*KEY[:EVENT]`.
* e.g. `keys="space ctrl+shift+tab enter:keyup"`.
* More detail can be found in the "Grammar" section of the documentation
*/
keys: string|null|undefined;
attached(): void;
_targetChanged(target: any): void;
_keysChanged(): void;
_fireKeysPressed(event: any): void;
}

interface HTMLElementTagNameMap {
"iron-a11y-keys": IronA11yKeysElement;
}
Loading

0 comments on commit 9a30dcf

Please sign in to comment.