From e196303e64817aaa787026977178068e7ab18835 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Tue, 14 Apr 2020 11:05:09 +0200 Subject: [PATCH] refactor: state explicit type in isThing function --- src/guards.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guards.ts b/src/guards.ts index 8e9f3030..ae8eeeb3 100644 --- a/src/guards.ts +++ b/src/guards.ts @@ -41,7 +41,7 @@ export function isThing(something: unknown): something is SCThing { return Object .values(SCThingType) - .indexOf(type) >= 0; + .indexOf(type as SCThingType) >= 0; } /**