Skip to content

Commit

Permalink
Remove overshadow, use different prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd committed Jan 29, 2025
1 parent badc2e9 commit b3660a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions libs/langgraph/src/graph/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<N, State, Update>;
Expand Down
4 changes: 2 additions & 2 deletions libs/langgraph/src/pregel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ export class Pregel<
}

/** @internal Used for type inferrence */
declare RunInput: Awaited<OutputType>;
declare "~InputType": InputType;

/** @internal Used for type inferrence */
declare RunOutput: Awaited<InputType>;
declare "~OutputType": OutputType;

// Because Pregel extends `Runnable`.
lc_namespace = ["langgraph", "pregel"];
Expand Down

0 comments on commit b3660a7

Please sign in to comment.