Skip to content

Commit f9db7be

Browse files
authored
chore(langgraph): rename internal type declarations (#1696)
1 parent f3482dc commit f9db7be

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

libs/langgraph/src/graph/graph.ts

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -571,25 +571,18 @@ export class Graph<
571571

572572
export class CompiledGraph<
573573
N extends string,
574-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
575-
State = any,
576-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
577-
Update = any,
578-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
579-
ContextType extends Record<string, any> = Record<string, any>,
580-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
581-
InputType = any,
582-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
583-
OutputType = any,
574+
State = any, // eslint-disable-line @typescript-eslint/no-explicit-any
575+
Update = any, // eslint-disable-line @typescript-eslint/no-explicit-any
576+
ContextType extends Record<string, any> = Record<string, any>, // eslint-disable-line @typescript-eslint/no-explicit-any
577+
InputType = any, // eslint-disable-line @typescript-eslint/no-explicit-any
578+
OutputType = any, // eslint-disable-line @typescript-eslint/no-explicit-any
584579
NodeReturnType = unknown,
585580
CommandType = unknown,
586-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
587-
StreamCustomType = any
581+
StreamCustomType = any // eslint-disable-line @typescript-eslint/no-explicit-any
588582
> extends Pregel<
589583
Record<N | typeof START, PregelNode<State, Update>>,
590584
Record<N | typeof START | typeof END | string, BaseChannel>,
591-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
592-
ContextType & Record<string, any>,
585+
ContextType & Record<string, any>, // eslint-disable-line @typescript-eslint/no-explicit-any
593586
InputType,
594587
OutputType,
595588
InputType,
@@ -598,13 +591,13 @@ export class CompiledGraph<
598591
CommandType,
599592
StreamCustomType
600593
> {
601-
declare NodeType: N;
594+
declare "~NodeType": N;
602595

603596
declare "~NodeReturnType": NodeReturnType;
604597

605-
declare RunInput: State;
598+
declare "~RunInput": Update;
606599

607-
declare RunOutput: Update;
600+
declare "~RunOutput": State;
608601

609602
builder: Graph<N, State, Update>;
610603

0 commit comments

Comments
 (0)