From 1e62dbccc65e03b65cfd2d112f0059ec31515098 Mon Sep 17 00:00:00 2001
From: David Sehnal <david.sehnal@gmail.com>
Date: Sat, 24 Nov 2018 23:40:28 +0100
Subject: [PATCH] mol-state: tweaked StateObject.is

---
 src/mol-state/object.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mol-state/object.ts b/src/mol-state/object.ts
index 86e0cce2a..70917c833 100644
--- a/src/mol-state/object.ts
+++ b/src/mol-state/object.ts
@@ -27,9 +27,9 @@ namespace StateObject {
     export type From<C extends Ctor> = C extends Ctor<infer T> ? T : never
 
     export function create<Data, T extends Type>(type: T) {
-        return class implements StateObject<Data, T> {
+        return class O implements StateObject<Data, T> {
             static type = type;
-            static is(obj?: StateObject): obj is StateObject<Data, T> { return !!obj && type === obj.type; }
+            static is(obj?: StateObject): obj is O { return !!obj && type === obj.type; }
             id = UUID.create22();
             type = type;
             label: string;
-- 
GitLab