diff options
-rw-r--r-- | package-lock.json | 6 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/background/usecases/parsers.ts | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/package-lock.json b/package-lock.json index 072cd64..ec9eda8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9865,9 +9865,9 @@ "dev": true }, "typescript": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.2.tgz", - "integrity": "sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw==", + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.4.tgz", + "integrity": "sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index 6429e93..96d3057 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "ts-loader": "^6.2.1", "ts-node": "^8.5.4", "tsyringe": "^4.0.0", - "typescript": "^3.6.2", + "typescript": "^3.7.4", "web-ext-types": "^3.2.1", "webextensions-api-fake": "^0.9.0", "webpack": "^4.41.4", diff --git a/src/background/usecases/parsers.ts b/src/background/usecases/parsers.ts index 544dce4..99ff2eb 100644 --- a/src/background/usecases/parsers.ts +++ b/src/background/usecases/parsers.ts @@ -29,8 +29,9 @@ const parseSetOption = ( case 'string': return [key, value]; case 'number': return [key, mustNumber(value)]; case 'boolean': return [key, value]; + default: + throw new Error('Unknown property type: ' + def.type); } - throw new Error('Unknown property type: ' + def.type); }; export { parseSetOption }; |