Remove or exempt all uses of 'any

* Refactored LocalForage
* Refactored SceneFilenameParser
This commit is contained in:
Infinite
2020-02-13 19:54:37 +01:00
parent a60c89ceb1
commit cdadb66d85
43 changed files with 671 additions and 677 deletions

View File

@@ -175,7 +175,7 @@ export const SettingsConfigurationPanel: React.FC = () => {
<Form.Control
className="col col-sm-6"
defaultValue={databasePath}
onChange={(e: any) => setDatabasePath(e.target.value)}
onChange={(e: React.FormEvent<HTMLInputElement>) => setDatabasePath(e.currentTarget.value)}
/>
<Form.Text className="text-muted">
File location for the SQLite database (requires restart)
@@ -187,7 +187,7 @@ export const SettingsConfigurationPanel: React.FC = () => {
<Form.Control
className="col col-sm-6"
defaultValue={generatedPath}
onChange={(e: any) => setGeneratedPath(e.target.value)}
onChange={(e: React.FormEvent<HTMLInputElement>) => setGeneratedPath(e.currentTarget.value)}
/>
<Form.Text className="text-muted">
Directory location for the generated files (scene markers, scene
@@ -204,8 +204,8 @@ export const SettingsConfigurationPanel: React.FC = () => {
<Form.Control
className="col col-sm-6"
value={regexp}
onChange={(e: any) =>
excludeRegexChanged(i, e.target.value)
onChange={(e: React.FormEvent<HTMLInputElement>) =>
excludeRegexChanged(i, e.currentTarget.value)
}
/>
<InputGroup.Append>