From b3660a78b6f3031291c6e46616b9e8dbc264aaee Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Wed, 29 Jan 2025 16:29:57 +0100 Subject: [PATCH] Remove overshadow, use different prefix --- libs/langgraph/src/graph/graph.ts | 2 -- libs/langgraph/src/pregel/index.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/langgraph/src/graph/graph.ts b/libs/langgraph/src/graph/graph.ts index 7987b889..6b907a6e 100644 --- a/libs/langgraph/src/graph/graph.ts +++ b/libs/langgraph/src/graph/graph.ts @@ -519,10 +519,8 @@ export class CompiledGraph< > { declare NodeType: N; - // @ts-expect-error Can be overshadowed by the Pregel class declare RunInput: State; - // @ts-expect-error Can be overshadowed by the Pregel class declare RunOutput: Update; builder: Graph; diff --git a/libs/langgraph/src/pregel/index.ts b/libs/langgraph/src/pregel/index.ts index f16bdf99..2be34233 100644 --- a/libs/langgraph/src/pregel/index.ts +++ b/libs/langgraph/src/pregel/index.ts @@ -218,10 +218,10 @@ export class Pregel< } /** @internal Used for type inferrence */ - declare RunInput: Awaited; + declare "~InputType": InputType; /** @internal Used for type inferrence */ - declare RunOutput: Awaited; + declare "~OutputType": OutputType; // Because Pregel extends `Runnable`. lc_namespace = ["langgraph", "pregel"];