From 89bdd27cd9cc111106c0851d9c8e056c79d77319 Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Fri, 16 Feb 2018 22:55:13 -0800 Subject: [PATCH] Update and/or configure type declarations. (#85) --- .travis.yml | 2 +- iron-fit-behavior.d.ts | 34 +++---- package-lock.json | 202 +++++++++++++++++++---------------------- package.json | 2 +- 4 files changed, 115 insertions(+), 125 deletions(-) diff --git a/.travis.yml b/.travis.yml index b089e7a..ffad635 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ before_script: - >- 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) + update-types".' && false) env: global: - secure: >- diff --git a/iron-fit-behavior.d.ts b/iron-fit-behavior.d.ts index 99eeecd..018bb1b 100644 --- a/iron-fit-behavior.d.ts +++ b/iron-fit-behavior.d.ts @@ -134,39 +134,41 @@ declare namespace Polymer { */ autoFitOnAttach: boolean|null|undefined; _fitInfo: object|null; - _fitWidth(): any; - _fitHeight(): any; - _fitLeft(): any; - _fitTop(): any; + readonly _fitWidth: any; + readonly _fitHeight: any; + readonly _fitLeft: any; + readonly _fitTop: any; /** * The element that should be used to position the element, * if no position target is configured. + * */ - _defaultPositionTarget(): any; + readonly _defaultPositionTarget: any; /** * The horizontal align value, accounting for the RTL/LTR text direction. + * */ - _localeHorizontalAlign(): any; - attached(): any; - detached(): any; + readonly _localeHorizontalAlign: any; + attached(): void; + detached(): void; /** * Positions and fits the element into the `fitInto` element. */ - fit(): any; + fit(): void; /** * Memoize information needed to position and size the target element. */ - _discoverInfo(): any; + _discoverInfo(): void; /** * Resets the target element's position and size constraints, and clear * the memoized data. */ - resetFit(): any; + resetFit(): void; /** * Equivalent to calling `resetFit()` and `fit()`. Useful to call this after @@ -174,25 +176,25 @@ declare namespace Polymer { * positioning properties (e.g. `horizontalAlign, verticalAlign`) is updated. * It preserves the scroll position of the sizingTarget. */ - refit(): any; + refit(): void; /** * Positions the element according to `horizontalAlign, verticalAlign`. */ - position(): any; + position(): void; /** * Constrains the size of the element to `fitInto` by setting `max-height` * and/or `max-width`. */ - constrain(): any; - _sizeDimension(rect: any, positionedBy: any, start: any, end: any, extent: any): any; + constrain(): void; + _sizeDimension(rect: any, positionedBy: any, start: any, end: any, extent: any): void; /** * Centers horizontally and vertically if not already positioned. This also sets * `position:fixed`. */ - center(): any; + center(): void; } const IronFitBehavior: object; diff --git a/package-lock.json b/package-lock.json index c78efb4..1ea3f94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,76 +4,22 @@ "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", "@types/fs-extra": "5.0.0", "@types/glob": "5.0.35", - "command-line-args": "5.0.1", + "command-line-args": "5.0.2", "command-line-usage": "4.1.0", "doctrine": "2.1.0", "escodegen": "1.9.0", "fs-extra": "5.0.0", "glob": "7.1.2", "minimatch": "3.0.4", - "polymer-analyzer": "3.0.0-pre.10" - }, - "dependencies": { - "@types/node": { - "version": "6.0.97", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.97.tgz", - "integrity": "sha512-k3CDdCq8Uv8AZ7/bmGSSvlwbPDPhkkckSq8Y9ndXowv86m3k07PjG98SigpjVAY9EyHV9kiFldEV306xh4gkig==", - "dev": true - }, - "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=", - "dev": true, - "requires": { - "@types/babel-generator": "6.25.1", - "@types/babel-traverse": "6.25.3", - "@types/babel-types": "6.25.2", - "@types/babylon": "6.16.2", - "@types/chai-subset": "1.3.1", - "@types/chalk": "0.4.31", - "@types/clone": "0.1.30", - "@types/cssbeautify": "0.3.1", - "@types/doctrine": "0.0.1", - "@types/minimatch": "3.0.3", - "@types/node": "6.0.97", - "@types/parse5": "2.2.34", - "babel-generator": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "chalk": "1.1.3", - "clone": "2.1.1", - "cssbeautify": "0.3.1", - "doctrine": "2.1.0", - "dom5": "2.3.0", - "indent": "0.0.2", - "jsonschema": "1.2.2", - "minimatch": "3.0.4", - "parse5": "2.2.3", - "polymer-project-config": "3.8.1", - "shady-css-parser": "0.1.0", - "stable": "0.1.6", - "strip-indent": "2.0.0", - "vscode-uri": "1.0.1" - }, - "dependencies": { - "@types/doctrine": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@types/doctrine/-/doctrine-0.0.1.tgz", - "integrity": "sha1-uZny2fe0PKvgoaLzm8IDvH3K2p0=", - "dev": true - } - } - } + "polymer-analyzer": "3.0.0-pre.12" } }, "@types/babel-generator": { @@ -160,7 +106,7 @@ "integrity": "sha512-qtxDULQKUenuaDLW003CgC+0T0eiAfH3BrH+vSt87GLzbz5EZ6Ox6mv9rMttvhDOatbb9nYh0E1m7ydoYwUrAg==", "dev": true, "requires": { - "@types/node": "9.4.0" + "@types/node": "9.4.6" } }, "@types/glob": { @@ -171,7 +117,7 @@ "requires": { "@types/events": "1.1.0", "@types/minimatch": "3.0.3", - "@types/node": "9.4.0" + "@types/node": "9.4.6" } }, "@types/minimatch": { @@ -181,9 +127,9 @@ "dev": true }, "@types/node": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.0.tgz", - "integrity": "sha512-zkYho6/4wZyX6o9UQ8rd0ReEaiEYNNCqYFIAACe2Tf9DrYlgzWW27OigYHnnztnnZQwVRpwWmZKegFmDpinIsA==", + "version": "9.4.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.6.tgz", + "integrity": "sha512-CTUtLb6WqCCgp6P59QintjHWqzf4VL1uPA27bipLAPxFqrtK1gEYllePzTICGqQ8rYsCbpnsNypXjjDzGAAjEQ==", "dev": true }, "@types/parse5": { @@ -192,16 +138,16 @@ "integrity": "sha1-44cKEOgnNacg9i1x3NGDunjvOp0=", "dev": true, "requires": { - "@types/node": "9.4.0" + "@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.0" + "@types/node": "9.4.6" } }, "ansi-escape-sequences": { @@ -262,9 +208,9 @@ } }, "babel-generator": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.0.tgz", - "integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", "dev": true, "requires": { "babel-messages": "6.23.0", @@ -272,7 +218,7 @@ "babel-types": "6.26.0", "detect-indent": "4.0.0", "jsesc": "1.3.0", - "lodash": "4.17.4", + "lodash": "4.17.5", "source-map": "0.5.7", "trim-right": "1.0.1" } @@ -310,7 +256,7 @@ "debug": "2.6.9", "globals": "9.18.0", "invariant": "2.2.2", - "lodash": "4.17.4" + "lodash": "4.17.5" } }, "babel-types": { @@ -321,7 +267,7 @@ "requires": { "babel-runtime": "6.26.0", "esutils": "2.0.2", - "lodash": "4.17.4", + "lodash": "4.17.5", "to-fast-properties": "1.0.3" } }, @@ -344,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", @@ -379,9 +325,9 @@ "dev": true }, "command-line-args": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.0.1.tgz", - "integrity": "sha512-gRJDcIjFSzMcmG/GrJlgL0wWoAxr11mVzCq32bjka0endupm9meLwvoJUKc4HDeFiEIB2X3GvNrhF5cKO4Bd4A==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.0.2.tgz", + "integrity": "sha512-/qPcbL8zpqg53x4rAaqMFlRV4opN3pbla7I7k9x8kyOBMQoGT6WltjN6sXZuxOXw6DgdK7Ad+ijYS5gjcr7vlA==", "dev": true, "requires": { "argv-tools": "0.1.1", @@ -467,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.96", "@types/parse5": "2.2.34", "clone": "2.1.1", - "parse5": "2.2.3" - }, - "dependencies": { - "@types/node": { - "version": "6.0.96", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.96.tgz", - "integrity": "sha512-fsOOY6tMQ3jCB2wD51XFDmmpgm4wVKkJECdcVRqapbJEa7awJDcr+SaH8toz+4r4KW8YQ3M7ybXMoSDo1QGewA==", - "dev": true - } + "parse5": "4.0.0" } }, "escape-string-regexp": { @@ -682,9 +618,9 @@ } }, "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", "dev": true }, "lodash.camelcase": { @@ -714,7 +650,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "1.1.11" } }, "minimatch-all": { @@ -762,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": { @@ -780,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": { @@ -792,22 +728,74 @@ } } }, + "polymer-analyzer": { + "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", + "@types/babel-traverse": "6.25.3", + "@types/babel-types": "6.25.2", + "@types/babylon": "6.16.2", + "@types/chai-subset": "1.3.1", + "@types/chalk": "0.4.31", + "@types/clone": "0.1.30", + "@types/cssbeautify": "0.3.1", + "@types/doctrine": "0.0.1", + "@types/minimatch": "3.0.3", + "@types/node": "6.0.101", + "@types/parse5": "2.2.34", + "babel-generator": "6.26.1", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "chalk": "1.1.3", + "clone": "2.1.1", + "cssbeautify": "0.3.1", + "doctrine": "2.1.0", + "dom5": "3.0.0", + "indent": "0.0.2", + "jsonschema": "1.2.2", + "minimatch": "3.0.4", + "parse5": "4.0.0", + "polymer-project-config": "3.8.1", + "shady-css-parser": "0.1.0", + "stable": "0.1.6", + "strip-indent": "2.0.0", + "vscode-uri": "1.0.1" + }, + "dependencies": { + "@types/doctrine": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@types/doctrine/-/doctrine-0.0.1.tgz", + "integrity": "sha1-uZny2fe0PKvgoaLzm8IDvH3K2p0=", + "dev": true + }, + "@types/node": { + "version": "6.0.101", + "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.101.tgz", + "integrity": "sha512-IQ7V3D6+kK1DArTqTBrnl3M+YgJZLw8ta8w3Q9xjR79HaJzMAoTbZ8TNzUTztrkCKPTqIstE2exdbs1FzsYLUw==", + "dev": true + } + } + }, "polymer-project-config": { "version": "3.8.1", "resolved": "https://registry.npmjs.org/polymer-project-config/-/polymer-project-config-3.8.1.tgz", "integrity": "sha512-MLvnM9gexFWg7nynY24eHZG6NLXocmk718sVds/sx2CAJ6iihhC0JMhhOIa6jnad9KQrHyGl/cs3mMRaaub5Fg==", "dev": true, "requires": { - "@types/node": "6.0.96", + "@types/node": "6.0.101", "jsonschema": "1.2.2", "minimatch-all": "1.1.0", "plylog": "0.5.0" }, "dependencies": { "@types/node": { - "version": "6.0.96", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.96.tgz", - "integrity": "sha512-fsOOY6tMQ3jCB2wD51XFDmmpgm4wVKkJECdcVRqapbJEa7awJDcr+SaH8toz+4r4KW8YQ3M7ybXMoSDo1QGewA==", + "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 74c037a..ec16390 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": {