refactor: state explicit type in isThing function

This commit is contained in:
Rainer Killinger
2020-04-14 11:05:09 +02:00
parent 70c1a3eaa3
commit e196303e64

View File

@@ -41,7 +41,7 @@ export function isThing(something: unknown): something is SCThing {
return Object
.values(SCThingType)
.indexOf(type) >= 0;
.indexOf(type as SCThingType) >= 0;
}
/**