diff --git a/package.json b/package.json index 08d6e5ee80..882e00da6a 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "style-loader": "^0.23.1", "ts-jest": "^26.0.0", "turbo": "^1.2.6", - "typescript": "^3.9.5", + "typescript": "^4.7.4", "webpack": "^5.72.0" }, "workspaces": { diff --git a/packages/clay-alert/src/index.tsx b/packages/clay-alert/src/index.tsx index d06ca5ddbe..a97c217c4f 100644 --- a/packages/clay-alert/src/index.tsx +++ b/packages/clay-alert/src/index.tsx @@ -42,7 +42,7 @@ const useAutoClose = (autoClose?: boolean | number, onClose = () => {}) => { } React.useEffect(() => { - if (autoClose && onClose) { + if (autoClose) { startTimer(); return pauseTimer; diff --git a/packages/clay-core/stories/TreeView.stories.tsx b/packages/clay-core/stories/TreeView.stories.tsx index 870beb10d4..e5ed27edf3 100644 --- a/packages/clay-core/stories/TreeView.stories.tsx +++ b/packages/clay-core/stories/TreeView.stories.tsx @@ -1515,7 +1515,7 @@ export const DemoDocumentsMultiple = () => { OptionalCheckbox.displayName = 'ClayCheckbox'; - const MAPPING_ICON = { + const MAPPING_ICON: Record = { article: 'web-content', documents: 'documents-and-media', }; diff --git a/yarn.lock b/yarn.lock index 27a3dfe5bc..2d16e32562 100644 --- a/yarn.lock +++ b/yarn.lock @@ -24160,10 +24160,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@^3.9.5: - version "3.9.10" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" - integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== +typescript@^4.7.4: + version "4.7.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" + integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== uglify-js@3.4.x: version "3.4.10"