Skip to content

Commit

Permalink
chore(types): Export types for portability (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Sep 3, 2024
1 parent 35364db commit 0e9f333
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 29 deletions.
4 changes: 0 additions & 4 deletions libs/langgraph/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
_types.cjs
_types.js
_types.d.ts
_types.d.cts
index.cjs
index.js
index.d.ts
Expand Down
1 change: 0 additions & 1 deletion libs/langgraph/langchain.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function abs(relativePath) {
export const config = {
internals: [/node\:/, /@langchain\/core\//, /async_hooks/],
entrypoints: {
_types: "_types",
index: "index",
web: "web",
pregel: "pregel/index",
Expand Down
13 changes: 0 additions & 13 deletions libs/langgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@
"registry": "https://registry.npmjs.org/"
},
"exports": {
"./_types": {
"types": {
"import": "./_types.d.ts",
"require": "./_types.d.cts",
"default": "./_types.d.ts"
},
"import": "./_types.js",
"require": "./_types.cjs"
},
".": {
"types": {
"import": "./index.d.ts",
Expand Down Expand Up @@ -130,10 +121,6 @@
},
"files": [
"dist/",
"_types.cjs",
"_types.js",
"_types.d.ts",
"_types.d.cts",
"index.cjs",
"index.js",
"index.d.ts",
Expand Down
11 changes: 0 additions & 11 deletions libs/langgraph/src/_types.ts

This file was deleted.

7 changes: 7 additions & 0 deletions libs/langgraph/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ export {
BaseChannel,
type BinaryOperator,
BinaryOperatorAggregate,
type AnyValue,
type WaitForNames,
type DynamicBarrierValue,
type LastValue,
type NamedBarrierValue,
type Topic,
} from "./channels/index.js";
export { type AnnotationRoot as _INTERNAL_ANNOTATION_ROOT } from "./graph/index.js";
export { type RetryPolicy } from "./pregel/utils.js";
export { Send } from "./constants.js";

Expand Down

0 comments on commit 0e9f333

Please sign in to comment.