From 6264c87b35883b73a5c680c0e51c3580a8609321 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 22 Dec 2019 15:28:00 +0900 Subject: Update typescript --- src/background/usecases/parsers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/background') 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 }; -- cgit v1.2.3