From b5a3045bae12abbfc01aa34817eb461cfb268618 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 13 Jun 2023 11:37:33 -0400 Subject: [PATCH] update typescript --- cspell.json | 1 + docs/pages/resources/changelog.md | 1 + package-lock.json | 30 +++++++++++++-------------- package.json | 4 ++-- src/components/animation/animation.ts | 2 +- 5 files changed, 20 insertions(+), 18 deletions(-) diff --git a/cspell.json b/cspell.json index 7c19f825..236d02cc 100644 --- a/cspell.json +++ b/cspell.json @@ -106,6 +106,7 @@ "noreferrer", "novalidate", "npmdir", + "Numberish", "outdir", "ParamagicDev", "peta", diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md index 0911d5c6..6fde4b4e 100644 --- a/docs/pages/resources/changelog.md +++ b/docs/pages/resources/changelog.md @@ -39,6 +39,7 @@ If you're a CDN user, you must update your path to point to `cdn/` instead of `d - Improved the autoloader so it watches `` instead of `` since the latter gets replaced by some frameworks [#1338](https://github.com/shoelace-style/shoelace/pull/1338) - Improved the Rails documentation [#1258](https://github.com/shoelace-style/shoelace/pull/1258) - Replaced Docsify with Eleventy to generate a static HTML version of the docs +- Updated TypeScript to 5.1.3 ## 2.4.0 diff --git a/package-lock.json b/package-lock.json index b45c7a32..2c283416 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@floating-ui/dom": "^1.2.1", "@lit-labs/react": "^1.1.1", "@shoelace-style/animations": "^1.1.0", - "@shoelace-style/localize": "^3.1.0", + "@shoelace-style/localize": "^3.1.1", "composed-offset-position": "^0.0.4", "lit": "^2.6.1", "qr-creator": "^1.0.0" @@ -76,7 +76,7 @@ "source-map": "^0.7.4", "strip-css-comments": "^5.0.0", "tslib": "^2.4.1", - "typescript": "4.9.4", + "typescript": "^5.1.3", "user-agent-data-types": "^0.3.0" }, "engines": { @@ -1782,9 +1782,9 @@ } }, "node_modules/@shoelace-style/localize": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.0.tgz", - "integrity": "sha512-evGxn5wIQh1/Ks1RbZm7rY4DxPKAUnXKTixZNgnYV/N2V8Bbbvsi+S14gNa42SQNUJK5WooNtlar2B8cehEwZQ==" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.1.tgz", + "integrity": "sha512-NkM/hj3Js6yXCU9WxhsyxRUdyqUUUl/BSvIluUMptQteUWGOJaoyP1iMbOMqO544DYMzBfnoCw66ZHkGuTdKgA==" }, "node_modules/@sindresorhus/is": { "version": "0.7.0", @@ -16259,16 +16259,16 @@ } }, "node_modules/typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/typical": { @@ -18480,9 +18480,9 @@ "integrity": "sha512-Be+cahtZyI2dPKRm8EZSx3YJQ+jLvEcn3xzRP7tM4tqBnvd/eW/64Xh0iOf0t2w5P8iJKfdBbpVNE9naCaOf2g==" }, "@shoelace-style/localize": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.0.tgz", - "integrity": "sha512-evGxn5wIQh1/Ks1RbZm7rY4DxPKAUnXKTixZNgnYV/N2V8Bbbvsi+S14gNa42SQNUJK5WooNtlar2B8cehEwZQ==" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.1.tgz", + "integrity": "sha512-NkM/hj3Js6yXCU9WxhsyxRUdyqUUUl/BSvIluUMptQteUWGOJaoyP1iMbOMqO544DYMzBfnoCw66ZHkGuTdKgA==" }, "@sindresorhus/is": { "version": "0.7.0", @@ -29549,9 +29549,9 @@ } }, "typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", "dev": true }, "typical": { diff --git a/package.json b/package.json index c6355ded..0ae00cd5 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "@floating-ui/dom": "^1.2.1", "@lit-labs/react": "^1.1.1", "@shoelace-style/animations": "^1.1.0", - "@shoelace-style/localize": "^3.1.0", + "@shoelace-style/localize": "^3.1.1", "composed-offset-position": "^0.0.4", "lit": "^2.6.1", "qr-creator": "^1.0.0" @@ -131,7 +131,7 @@ "source-map": "^0.7.4", "strip-css-comments": "^5.0.0", "tslib": "^2.4.1", - "typescript": "4.9.4", + "typescript": "^5.1.3", "user-agent-data-types": "^0.3.0" }, "lint-staged": { diff --git a/src/components/animation/animation.ts b/src/components/animation/animation.ts index a4ef5414..98eaf39c 100644 --- a/src/components/animation/animation.ts +++ b/src/components/animation/animation.ts @@ -78,7 +78,7 @@ export default class SlAnimation extends ShoelaceElement { @property({ attribute: 'playback-rate', type: Number }) playbackRate = 1; /** Gets and sets the current animation time. */ - get currentTime(): number { + get currentTime(): CSSNumberish { return this.animation?.currentTime ?? 0; }