From ecd1c59122fae48fc8402141193c040d01288d67 Mon Sep 17 00:00:00 2001 From: Guy Carmeli Date: Tue, 10 Sep 2024 15:09:54 +0300 Subject: [PATCH] Compatibility with TypeScript 5.6.2 Fix TSC error on TS 5.6.2 --- packages/react-obsidian/src/graph/registry/GraphRegistry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-obsidian/src/graph/registry/GraphRegistry.ts b/packages/react-obsidian/src/graph/registry/GraphRegistry.ts index 27dbb59e..cd7011bb 100644 --- a/packages/react-obsidian/src/graph/registry/GraphRegistry.ts +++ b/packages/react-obsidian/src/graph/registry/GraphRegistry.ts @@ -65,7 +65,7 @@ export class GraphRegistry { } private getFirst(Graph: Constructable): T { - return this.constructorToInstance.get(Graph)!.values().next().value; + return this.constructorToInstance.get(Graph)!.values().next().value as T; } private getByInjectionToken(Graph: Constructable, injectionToken?: string): T {