Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed May 2, 2024
1 parent 911986d commit a80c4ff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion langchain-core/src/utils/async_caller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export class AsyncCaller {
params.onFailedAttempt ?? defaultFailedAttemptHandler;

const PQueue = "default" in PQueueMod ? PQueueMod.default : PQueueMod;
this.queue = new (PQueue as typeof import("p-queue")["default"])({ concurrency: this.maxConcurrency });
this.queue = new (PQueue as typeof import("p-queue")["default"])({
concurrency: this.maxConcurrency,
});
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
4 changes: 1 addition & 3 deletions langchain-core/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"node_modules",
"dist",
"docs",
"**/tests",
"src/language_models/base.ts",
"src/utils/tiktoken.ts"
"**/tests"
]
}
7 changes: 6 additions & 1 deletion libs/langchain-community/src/graphs/neo4j_graph.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import neo4j, { RoutingControl, type Record as Neo4jRecord, type Driver as Neo4jDriver, type Path as Neo4jPath } from "neo4j-driver";
import neo4j, {
RoutingControl,
type Record as Neo4jRecord,
type Driver as Neo4jDriver,
type Path as Neo4jPath,
} from "neo4j-driver";
import { insecureHash } from "@langchain/core/utils/hash";
import { GraphDocument } from "./graph_document.js";

Expand Down
6 changes: 5 additions & 1 deletion libs/langchain-community/src/vectorstores/neo4j_vector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import neo4j, { type Driver as Neo4jDriver, type Record as Neo4jRecord, type Path as Neo4jPath } from "neo4j-driver";
import neo4j, {
type Driver as Neo4jDriver,
type Record as Neo4jRecord,
type Path as Neo4jPath,
} from "neo4j-driver";
import * as uuid from "uuid";
import type { EmbeddingsInterface } from "@langchain/core/embeddings";
import { VectorStore } from "@langchain/core/vectorstores";
Expand Down

0 comments on commit a80c4ff

Please sign in to comment.