From 56c4065abd491206bd67ee533cab1a89f0e3b964 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 4 Mar 2021 11:41:15 +1100 Subject: [PATCH] move some types from dep to dev dependencies --- main.js | 2 +- package.json | 14 ++++++-------- ts/components/session/settings/SessionSettings.tsx | 4 ++-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/main.js b/main.js index ffcaecd3c..2d4f47ed5 100644 --- a/main.js +++ b/main.js @@ -825,7 +825,7 @@ async function requestShutdown() { // We'll wait two minutes, then force the app to go down. This can happen if someone // exits the app before we've set everything up in preload() (so the browser isn't // yet listening for these events), or if there are a whole lot of stacked-up tasks. - // Note: two minutes is also our timeout for SQL tasks in data.js in the browser. + // Note: two minutes is also our timeout for SQL tasks in data.ts in the browser. setTimeout(() => { console.log( 'requestShutdown: Response never received; forcing shutdown.' diff --git a/package.json b/package.json index 57696f950..4e3e7662f 100644 --- a/package.json +++ b/package.json @@ -57,14 +57,6 @@ "@journeyapps/sqlcipher": "https://github.com/scottnonnenberg-signal/node-sqlcipher.git#b10f232fac62ba7f8775c9e086bb5558fe7d948b", "@reduxjs/toolkit": "^1.4.0", "@sindresorhus/is": "0.8.0", - "@types/blueimp-load-image": "^2.23.8", - "@types/dompurify": "^2.0.0", - "@types/emoji-mart": "^2.11.3", - "@types/moment": "^2.13.0", - "@types/rc-slider": "^8.6.5", - "@types/react-mentions": "^3.3.1", - "@types/react-mic": "^12.4.1", - "@types/styled-components": "^5.1.4", "abort-controller": "3.0.0", "auto-bind": "^4.0.0", "backbone": "1.3.3", @@ -138,6 +130,12 @@ "devDependencies": { "@types/backbone": "^1.4.2", "@types/bytebuffer": "^5.0.41", + "@types/blueimp-load-image": "^2.23.8", + "@types/emoji-mart": "^2.11.3", + "@types/moment": "^2.13.0", + "@types/react-mentions": "^3.3.1", + "@types/react-mic": "^12.4.1", + "@types/styled-components": "^5.1.4", "@types/chai": "4.1.2", "@types/chai-as-promised": "^7.1.2", "@types/classnames": "2.2.3", diff --git a/ts/components/session/settings/SessionSettings.tsx b/ts/components/session/settings/SessionSettings.tsx index 59be7476e..d3e05d082 100644 --- a/ts/components/session/settings/SessionSettings.tsx +++ b/ts/components/session/settings/SessionSettings.tsx @@ -139,8 +139,8 @@ class SettingsViewInner extends React.Component { const onClickFn = setting.onClick || - ((value?: string) => { - this.updateSetting(setting, value); + ((settingValue?: string) => { + this.updateSetting(setting, settingValue); }); return (