From a95276c2149204b339966a89bb10d1ce45593673 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Wed, 13 Nov 2024 12:35:38 +1100 Subject: [PATCH] fix: import types from document_loader/web/html --- libs/langchain-community/src/document_loaders/web/cheerio.ts | 2 +- libs/langchain-community/src/document_loaders/web/sitemap.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain-community/src/document_loaders/web/cheerio.ts b/libs/langchain-community/src/document_loaders/web/cheerio.ts index 62c101e9b3f9..106b1ffe9d33 100644 --- a/libs/langchain-community/src/document_loaders/web/cheerio.ts +++ b/libs/langchain-community/src/document_loaders/web/cheerio.ts @@ -7,7 +7,7 @@ import type { import { Document } from "@langchain/core/documents"; import { AsyncCaller } from "@langchain/core/utils/async_caller"; import { BaseDocumentLoader } from "@langchain/core/document_loaders/base"; -import { WebBaseLoaderParams, WebBaseLoader } from "./html.js"; +import type { WebBaseLoaderParams, WebBaseLoader } from "./html.js"; /** * @deprecated Either import the CheerioWebBaseLoaderParams from @langchain/community/document_loaders/web/cheerio diff --git a/libs/langchain-community/src/document_loaders/web/sitemap.ts b/libs/langchain-community/src/document_loaders/web/sitemap.ts index 4ff935ca42aa..1cf5efcf75ba 100644 --- a/libs/langchain-community/src/document_loaders/web/sitemap.ts +++ b/libs/langchain-community/src/document_loaders/web/sitemap.ts @@ -5,7 +5,7 @@ import { CheerioWebBaseLoader, CheerioWebBaseLoaderParams } from "./cheerio.js"; /** * Interface representing the parameters for initializing a SitemapLoader. * @interface SitemapLoaderParams - * @extends WebBaseLoaderParams + * @extends CheerioWebBaseLoaderParams */ export interface SitemapLoaderParams extends CheerioWebBaseLoaderParams { /**