From cc94b1daa3a35324ab3d08c85ed9ae745febcffd Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2020 11:14:50 +1100 Subject: [PATCH] [MISC] (deps): Bump @types/react from 16.9.43 to 16.9.56 in /web (#1429) * [MISC] (deps): Bump @types/react from 16.9.43 to 16.9.56 in /web Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.43 to 16.9.56. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) Signed-off-by: dependabot-preview[bot] * Cast style to React.CSSProperties for LinearProgressBar Upgrading this typescript library results in the following type issue: Failed to compile. /buildkite/builds/authelia/authelia/web/src/components/LinearProgressBar.tsx TypeScript error in /buildkite/builds/authelia/authelia/web/src/components/LinearProgressBar.tsx(23,13): Type 'import("/buildkite/builds/authelia/authelia/web/node_modules/@material-ui/styles/withStyles/withStyles").CSSProperties | undefined' is not assignable to type 'React.CSSProperties | undefined'. Type 'import("/buildkite/builds/authelia/authelia/web/node_modules/@material-ui/styles/withStyles/withStyles").CSSProperties' is not assignable to type 'React.CSSProperties'. Types of property 'appearance' are incompatible. Type '"-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "button-bevel" | "checkbox" | "listbox" | "menulist" | "menulist-button" | "meter" | "progress-bar" | "push-button" | ... 7 more ... | undefined' is not assignable to type '"-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none" | "checkbox" | "listbox" | "menulist" | "menulist-button" | "meter" | "progress-bar" | "push-button" | ... 7 more ... | undefined'. Type '"button-bevel"' is not assignable to type '"-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none" | "checkbox" | "listbox" | "menulist" | "menulist-button" | "meter" | "progress-bar" | "push-button" | ... 7 more ... | undefined'. TS2322 21 | return ( 22 | 23 | style={props.style} | ^ 24 | variant="determinate" 25 | classes={{ 26 | root: style.progressRoot, error Command failed with exit code 1. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Amir Zarrinkafsh --- web/package.json | 2 +- web/src/components/LinearProgressBar.tsx | 2 +- web/yarn.lock | 17 +++++++++++------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/web/package.json b/web/package.json index 2d4c39ff..afcb43b7 100644 --- a/web/package.json +++ b/web/package.json @@ -16,7 +16,7 @@ "@types/node": "^14.14.6", "@types/qrcode.react": "^1.0.1", "@types/query-string": "^6.3.0", - "@types/react": "^16.9.43", + "@types/react": "^16.9.56", "@types/react-dom": "^16.9.9", "@types/react-ga": "^2.3.0", "@types/react-router-dom": "^5.1.6", diff --git a/web/src/components/LinearProgressBar.tsx b/web/src/components/LinearProgressBar.tsx index 23bccb3c..b2827622 100644 --- a/web/src/components/LinearProgressBar.tsx +++ b/web/src/components/LinearProgressBar.tsx @@ -20,7 +20,7 @@ const LinearProgressBar = function (props: Props) { }))(); return (