From 3460b92609d51785d8201b7036cf52ddb8fdaa4f Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Mon, 25 Nov 2024 09:37:12 -0800 Subject: [PATCH] fix(core): Fix issue in .d.ts typing for protected type (#7259) --- langchain-core/src/output_parsers/bytes.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/langchain-core/src/output_parsers/bytes.ts b/langchain-core/src/output_parsers/bytes.ts index 222d43948135..b6ebdb4708df 100644 --- a/langchain-core/src/output_parsers/bytes.ts +++ b/langchain-core/src/output_parsers/bytes.ts @@ -13,7 +13,9 @@ export class BytesOutputParser extends BaseTransformOutputParser { lc_serializable = true; - protected textEncoder = new TextEncoder(); + // TODO: Figure out why explicit typing is needed + // eslint-disable-next-line @typescript-eslint/no-explicit-any + protected textEncoder: any = new TextEncoder(); parse(text: string): Promise { return Promise.resolve(this.textEncoder.encode(text));