[PR #1239] [MERGED] feat(langgraph): introduce strict typing for .stream() methods #1320

Closed
opened 2026-02-15 20:15:15 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1239
Author: @dqbd
Created: 5/29/2025
Status: Merged
Merged: 5/29/2025
Merged by: @dqbd

Base: mainHead: dqbd/pregel-stream-types


📝 Commits (5)

  • 1a050b1 feat(langgraph): introduce strict typing for .stream() methods
  • ffadb45 Fix test
  • 587373d Another workaround for lack of @ts-ignore / @ts-expect-error in tsc build
  • 9f5c164 Enhance typing
  • 02fa073 Add more tests, fix awaited

📊 Changes

11 files changed (+394 additions, -28 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 libs/langgraph/.eslintrc.cjs (+1 -1)
📝 libs/langgraph/src/func/index.ts (+5 -1)
📝 libs/langgraph/src/pregel/index.ts (+74 -14)
📝 libs/langgraph/src/pregel/types.ts (+83 -3)
📝 libs/langgraph/src/tests/prebuilt.int.test.ts (+3 -5)
libs/langgraph/src/tests/pregel.test-d.ts (+220 -0)
📝 libs/langgraph/src/tests/pregel.test.ts (+2 -2)
📝 libs/langgraph/src/tests/tracing.int.test.ts (+2 -2)
📝 libs/langgraph/src/tests/utils.ts (+1 -0)
📝 libs/langgraph/vitest.config.js (+2 -0)

📄 Description

Supersedes https://github.com/langchain-ai/langgraphjs/pull/512


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/1239 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 5/29/2025 **Status:** ✅ Merged **Merged:** 5/29/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/pregel-stream-types` --- ### 📝 Commits (5) - [`1a050b1`](https://github.com/langchain-ai/langgraphjs/commit/1a050b1eaea58febe3b50a737984b9928a186149) feat(langgraph): introduce strict typing for `.stream()` methods - [`ffadb45`](https://github.com/langchain-ai/langgraphjs/commit/ffadb455de875ee1bcbba2ae4da1c151c47b65b4) Fix test - [`587373d`](https://github.com/langchain-ai/langgraphjs/commit/587373d45423c76a2767f927cc130978b8bd025f) Another workaround for lack of @ts-ignore / @ts-expect-error in tsc build - [`9f5c164`](https://github.com/langchain-ai/langgraphjs/commit/9f5c16428a2e6d741cd30b660b8bc5aa2ae80c30) Enhance typing - [`02fa073`](https://github.com/langchain-ai/langgraphjs/commit/02fa0731048096be5cc14a26a86dfc789745279d) Add more tests, fix awaited ### 📊 Changes **11 files changed** (+394 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `libs/langgraph/.eslintrc.cjs` (+1 -1) 📝 `libs/langgraph/src/func/index.ts` (+5 -1) 📝 `libs/langgraph/src/pregel/index.ts` (+74 -14) 📝 `libs/langgraph/src/pregel/types.ts` (+83 -3) 📝 `libs/langgraph/src/tests/prebuilt.int.test.ts` (+3 -5) ➕ `libs/langgraph/src/tests/pregel.test-d.ts` (+220 -0) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+2 -2) 📝 `libs/langgraph/src/tests/tracing.int.test.ts` (+2 -2) 📝 `libs/langgraph/src/tests/utils.ts` (+1 -0) 📝 `libs/langgraph/vitest.config.js` (+2 -0) </details> ### 📄 Description Supersedes https://github.com/langchain-ai/langgraphjs/pull/512 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:15 -05:00
yindo closed this issue 2026-02-15 20:15:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1320