Skip to content

Commit

Permalink
Upgrade TypeScript to 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Mar 7, 2021
1 parent d9b2fb1 commit 3d8ef1a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions background/providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export const providers = {};
* names for which authorization has changed to exist, not exist, or transition
* to or from a state of error.
*
* @param {SLState} [prevState] Previous state, if exists.
* @param {SLState} state Next state.
* @param {SLState|undefined} prevState Previous state, if exists.
* @param {SLState} state Next state.
*
* @return {string[]} Provider names for changed authorizations.
*/
Expand Down
2 changes: 1 addition & 1 deletion background/providers/twitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export default /** @type {import('../providers').SLProvider} */ ( {
).flat();
}

const follows = await fetchFollows( auth.user.id );
const follows = await fetchFollows( /** @type {string} */ ( auth.user.id ) );
return fetchStreams( follows );
},
} );
1 change: 1 addition & 0 deletions common/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function Card( { icon, title, children, className, buttonText, buttonOnClick } )
h( 'h4', { className: 'card__title' }, title ),
h( 'p', { className: 'card__description' }, children ),
buttonText &&
buttonOnClick &&
h(
'button',
{
Expand Down
1 change: 1 addition & 0 deletions common/components/notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function Notice( { icon, text, buttonText, buttonOnClick, className } ) {
} ),
h( 'div', { className: 'notice__text' }, text ),
buttonText &&
buttonOnClick &&
h(
'button',
{
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"prettier": "npm:wp-prettier@^2.0.5",
"rollup": "^2.26.0",
"rollup-plugin-sourcemaps": "^0.6.2",
"typescript": "^3.9.7",
"typescript": "^4.2.3",
"web-ext-types": "^3.2.1"
}
}

0 comments on commit 3d8ef1a

Please sign in to comment.