diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-22 15:28:00 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-22 15:56:42 +0900 |
commit | 6264c87b35883b73a5c680c0e51c3580a8609321 (patch) | |
tree | 6bbc33ca04bd254175a5fbd5479a54e73178b6ed /src/background | |
parent | ed1acacb945ad56c6002744db8016f3e40767f90 (diff) |
Update typescript
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/usecases/parsers.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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 }; |