Skip to content

Commit

Permalink
fix(core): Fix issue in .d.ts typing for protected type (#7259)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Nov 25, 2024
1 parent 2d6cf27 commit 3460b92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion langchain-core/src/output_parsers/bytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {

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<Uint8Array> {
return Promise.resolve(this.textEncoder.encode(text));
Expand Down

0 comments on commit 3460b92

Please sign in to comment.