diff --git a/animations/cascaded-animation.d.ts b/animations/cascaded-animation.d.ts index 2b1a352..5bcd3a0 100644 --- a/animations/cascaded-animation.d.ts +++ b/animations/cascaded-animation.d.ts @@ -27,7 +27,7 @@ * ``` */ interface CascadedAnimationElement extends Polymer.Element, Polymer.NeonAnimationBehavior { - complete(): any; + complete(): void; configure(config: {animation: string, nodes: Element[], nodeDelay?: number, timing?: object|null}): any; } diff --git a/animations/opaque-animation.d.ts b/animations/opaque-animation.d.ts index 34afcd8..96c48ec 100644 --- a/animations/opaque-animation.d.ts +++ b/animations/opaque-animation.d.ts @@ -16,7 +16,7 @@ * webkit/safari from drawing a frame before an animation for elements that animate from display:none. */ interface OpaqueAnimationElement extends Polymer.Element, Polymer.NeonAnimationBehavior { - complete(config: any): any; + complete(config: any): void; configure(config: any): any; } diff --git a/animations/reverse-ripple-animation.d.ts b/animations/reverse-ripple-animation.d.ts index 5d7021d..2e2c2e9 100644 --- a/animations/reverse-ripple-animation.d.ts +++ b/animations/reverse-ripple-animation.d.ts @@ -33,7 +33,7 @@ * ``` */ interface ReverseRippleAnimationElement extends Polymer.Element, Polymer.NeonSharedElementAnimationBehavior { - complete(): any; + complete(): void; configure(config: any): any; } diff --git a/animations/ripple-animation.d.ts b/animations/ripple-animation.d.ts index 56f0ff8..6b8cf59 100644 --- a/animations/ripple-animation.d.ts +++ b/animations/ripple-animation.d.ts @@ -35,7 +35,7 @@ * ``` */ interface RippleAnimationElement extends Polymer.Element, Polymer.NeonSharedElementAnimationBehavior { - complete(): any; + complete(): void; configure(config: any): any; } diff --git a/neon-animatable-behavior.d.ts b/neon-animatable-behavior.d.ts index e8e3451..c59411a 100644 --- a/neon-animatable-behavior.d.ts +++ b/neon-animatable-behavior.d.ts @@ -34,11 +34,11 @@ declare namespace Polymer { * manually if using this. The animated node is set to `this` if using this property. */ exitAnimation: string|null|undefined; - _entryAnimationChanged(): any; - _exitAnimationChanged(): any; - _copyProperties(config1: any, config2: any): any; + _entryAnimationChanged(): void; + _exitAnimationChanged(): void; + _copyProperties(config1: any, config2: any): void; _cloneConfig(config: any): any; - _getAnimationConfigRecursive(type: any, map: any, allConfigs: any): any; + _getAnimationConfigRecursive(type: any, map: any, allConfigs: any): void; /** * An element implementing `Polymer.NeonAnimationRunnerBehavior` calls this method to configure diff --git a/neon-animated-pages.d.ts b/neon-animated-pages.d.ts index f76f27e..e164ee9 100644 --- a/neon-animated-pages.d.ts +++ b/neon-animated-pages.d.ts @@ -27,10 +27,10 @@ interface NeonAnimatedPagesElement extends Polymer.Element, Polymer.IronResizabl * if true, the initial page selection will also be animated according to its animation config. */ animateInitialSelection: boolean|null|undefined; - _onIronSelect(event: any): any; - _completeSelectedChanged(oldPage?: object|null, selectedPage?: object|null): any; - _onNeonAnimationFinish(event: any): any; - _notifyPageResize(): any; + _onIronSelect(event: any): void; + _completeSelectedChanged(oldPage?: object|null, selectedPage?: object|null): void; + _onNeonAnimationFinish(event: any): void; + _notifyPageResize(): void; } interface HTMLElementTagNameMap { diff --git a/neon-animation-behavior.d.ts b/neon-animation-behavior.d.ts index cdc4a5d..153f314 100644 --- a/neon-animation-behavior.d.ts +++ b/neon-animation-behavior.d.ts @@ -24,9 +24,10 @@ declare namespace Polymer { /** * Can be used to determine that elements implement this behavior. + * */ isNeonAnimation: boolean; - created(): any; + created(): void; /** * Returns the animation timing by mixing in properties from `config` to the defaults defined @@ -37,12 +38,12 @@ declare namespace Polymer { /** * Sets `transform` and `transformOrigin` properties along with the prefixed versions. */ - setPrefixedProperty(node: any, property: any, value: any): any; + setPrefixedProperty(node: any, property: any, value: any): void; /** * Called when the animation finishes. */ - complete(config: any): any; + complete(config: any): void; } const NeonAnimationBehavior: object; diff --git a/neon-animation-runner-behavior.d.ts b/neon-animation-runner-behavior.d.ts index 5922385..162b649 100644 --- a/neon-animation-runner-behavior.d.ts +++ b/neon-animation-runner-behavior.d.ts @@ -19,17 +19,17 @@ declare namespace Polymer { interface NeonAnimationRunnerBehavior extends Polymer.NeonAnimatableBehavior { _configureAnimations(configs: any): any; _shouldComplete(activeEntries: any): any; - _complete(activeEntries: any): any; + _complete(activeEntries: any): void; /** * Plays an animation with an optional `type`. */ - playAnimation(type?: string, cookie?: object): any; + playAnimation(type?: string, cookie?: object): void; /** * Cancels the currently running animations. */ - cancelAnimation(): any; + cancelAnimation(): void; } const NeonAnimationRunnerBehavior: object; diff --git a/package-lock.json b/package-lock.json index 4aaec7c..77dd6c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,9 +4,9 @@ "lockfileVersion": 1, "dependencies": { "@polymer/gen-typescript-declarations": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@polymer/gen-typescript-declarations/-/gen-typescript-declarations-1.1.1.tgz", - "integrity": "sha512-rUfH6USpiPYSHl2dC+/rGb3RYK8LPyqNhiuZCLv13F0fhYr01jdTogGuSphEoSLklm1gKRsDsrfZq7OvpzPYEg==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@polymer/gen-typescript-declarations/-/gen-typescript-declarations-1.2.0.tgz", + "integrity": "sha512-a5DFXI3TdZSVOMH4608LVaBLmcr+mwM2+B8OSBiB9WFNCtdqzUXwtB5We6vBzrThXlO4uRo7d2pEqjNXMAlEkA==", "dev": true, "requires": { "@types/doctrine": "0.0.3", @@ -19,7 +19,7 @@ "fs-extra": "5.0.0", "glob": "7.1.2", "minimatch": "3.0.4", - "polymer-analyzer": "3.0.0-pre.10" + "polymer-analyzer": "3.0.0-pre.12" } }, "@types/babel-generator": { @@ -106,7 +106,7 @@ "integrity": "sha512-qtxDULQKUenuaDLW003CgC+0T0eiAfH3BrH+vSt87GLzbz5EZ6Ox6mv9rMttvhDOatbb9nYh0E1m7ydoYwUrAg==", "dev": true, "requires": { - "@types/node": "9.4.2" + "@types/node": "9.4.6" } }, "@types/glob": { @@ -117,7 +117,7 @@ "requires": { "@types/events": "1.1.0", "@types/minimatch": "3.0.3", - "@types/node": "9.4.2" + "@types/node": "9.4.6" } }, "@types/minimatch": { @@ -127,9 +127,9 @@ "dev": true }, "@types/node": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.2.tgz", - "integrity": "sha512-ubLY/uq8AQR+N1vUoa5Uf2zDg4yg/bysc3o4AAZzaMRS564R+vIRYqBxwfNlmRxRDJt/c5gn/X8O9mX8Oowugw==", + "version": "9.4.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.6.tgz", + "integrity": "sha512-CTUtLb6WqCCgp6P59QintjHWqzf4VL1uPA27bipLAPxFqrtK1gEYllePzTICGqQ8rYsCbpnsNypXjjDzGAAjEQ==", "dev": true }, "@types/parse5": { @@ -138,16 +138,16 @@ "integrity": "sha1-44cKEOgnNacg9i1x3NGDunjvOp0=", "dev": true, "requires": { - "@types/node": "9.4.2" + "@types/node": "9.4.6" } }, "@types/winston": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@types/winston/-/winston-2.3.7.tgz", - "integrity": "sha512-jNhbkxPtt9xbzvihfA0OavjJbpCIyTDSmwE03BVXgCKcz9lwNsq4cg2wsNkY4Av5eH35ttBArhYtVJa6CIrg2A==", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@types/winston/-/winston-2.3.8.tgz", + "integrity": "sha512-QqR0j08RCS1AQYPMRPHikEpcmK+2aEEbcSzWLwOqyJ4FhLmHUx/WjRrnn7tTQg/y4IKnMhzskh/o7qvGIZZ7iA==", "dev": true, "requires": { - "@types/node": "9.4.2" + "@types/node": "9.4.6" } }, "ansi-escape-sequences": { @@ -290,9 +290,9 @@ "dev": true }, "brace-expansion": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", - "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { "balanced-match": "1.0.0", @@ -413,24 +413,14 @@ } }, "dom5": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/dom5/-/dom5-2.3.0.tgz", - "integrity": "sha1-+CBJdb0NrLvltYqKk//B/tD/zSo=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/dom5/-/dom5-3.0.0.tgz", + "integrity": "sha512-PbE+7C4Sh1dHDTLNuSDaMUGD1ivDiSZw0L+a9xVUzUKeQ8w3vdzfKHRA07CxcrFZZOa1SGl2nIJ9T49j63q+bg==", "dev": true, "requires": { - "@types/clone": "0.1.30", - "@types/node": "6.0.98", "@types/parse5": "2.2.34", "clone": "2.1.1", - "parse5": "2.2.3" - }, - "dependencies": { - "@types/node": { - "version": "6.0.98", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.98.tgz", - "integrity": "sha512-Pzldp01+6TyKlTBlp+i4RzFCuwjOpHxcfEnB74IedyEUqil2uLVg7jelYKS3Ik9/M4WzIK5N9RdtZg6UByyPEg==", - "dev": true - } + "parse5": "4.0.0" } }, "escape-string-regexp": { @@ -660,7 +650,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "1.1.11" } }, "minimatch-all": { @@ -708,9 +698,9 @@ } }, "parse5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-2.2.3.tgz", - "integrity": "sha1-DE/EHBAAxea5PUiwP4CDg3g06fY=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", + "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", "dev": true }, "path-is-absolute": { @@ -726,7 +716,7 @@ "dev": true, "requires": { "@types/node": "4.2.23", - "@types/winston": "2.3.7", + "@types/winston": "2.3.8", "winston": "2.4.0" }, "dependencies": { @@ -739,9 +729,9 @@ } }, "polymer-analyzer": { - "version": "3.0.0-pre.10", - "resolved": "https://registry.npmjs.org/polymer-analyzer/-/polymer-analyzer-3.0.0-pre.10.tgz", - "integrity": "sha1-9vCd15PdL0IomsAdoCb8q6ZfGYw=", + "version": "3.0.0-pre.12", + "resolved": "https://registry.npmjs.org/polymer-analyzer/-/polymer-analyzer-3.0.0-pre.12.tgz", + "integrity": "sha512-QQL70IC85hI6q9uQeresEMcT1Qf8YR/zDe1qG8WWeeFAZk8z0lmzUpsfcAWz+bM4wpDdXrtd4HitIs4p0CHl/w==", "dev": true, "requires": { "@types/babel-generator": "6.25.1", @@ -754,7 +744,7 @@ "@types/cssbeautify": "0.3.1", "@types/doctrine": "0.0.1", "@types/minimatch": "3.0.3", - "@types/node": "6.0.98", + "@types/node": "6.0.101", "@types/parse5": "2.2.34", "babel-generator": "6.26.1", "babel-traverse": "6.26.0", @@ -764,11 +754,11 @@ "clone": "2.1.1", "cssbeautify": "0.3.1", "doctrine": "2.1.0", - "dom5": "2.3.0", + "dom5": "3.0.0", "indent": "0.0.2", "jsonschema": "1.2.2", "minimatch": "3.0.4", - "parse5": "2.2.3", + "parse5": "4.0.0", "polymer-project-config": "3.8.1", "shady-css-parser": "0.1.0", "stable": "0.1.6", @@ -783,9 +773,9 @@ "dev": true }, "@types/node": { - "version": "6.0.98", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.98.tgz", - "integrity": "sha512-Pzldp01+6TyKlTBlp+i4RzFCuwjOpHxcfEnB74IedyEUqil2uLVg7jelYKS3Ik9/M4WzIK5N9RdtZg6UByyPEg==", + "version": "6.0.101", + "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.101.tgz", + "integrity": "sha512-IQ7V3D6+kK1DArTqTBrnl3M+YgJZLw8ta8w3Q9xjR79HaJzMAoTbZ8TNzUTztrkCKPTqIstE2exdbs1FzsYLUw==", "dev": true } } @@ -796,16 +786,16 @@ "integrity": "sha512-MLvnM9gexFWg7nynY24eHZG6NLXocmk718sVds/sx2CAJ6iihhC0JMhhOIa6jnad9KQrHyGl/cs3mMRaaub5Fg==", "dev": true, "requires": { - "@types/node": "6.0.98", + "@types/node": "6.0.101", "jsonschema": "1.2.2", "minimatch-all": "1.1.0", "plylog": "0.5.0" }, "dependencies": { "@types/node": { - "version": "6.0.98", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.98.tgz", - "integrity": "sha512-Pzldp01+6TyKlTBlp+i4RzFCuwjOpHxcfEnB74IedyEUqil2uLVg7jelYKS3Ik9/M4WzIK5N9RdtZg6UByyPEg==", + "version": "6.0.101", + "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.101.tgz", + "integrity": "sha512-IQ7V3D6+kK1DArTqTBrnl3M+YgJZLw8ta8w3Q9xjR79HaJzMAoTbZ8TNzUTztrkCKPTqIstE2exdbs1FzsYLUw==", "dev": true } } diff --git a/package.json b/package.json index 3a4a93d..2dd963b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "license": "BSD-3-Clause", "devDependencies": { - "@polymer/gen-typescript-declarations": "^1.1.1", + "@polymer/gen-typescript-declarations": "^1.2.0", "bower": "^1.8.0" }, "scripts": {