We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7684485 commit dd581e4Copy full SHA for dd581e4
langchain-core/src/output_parsers/bytes.ts
@@ -13,9 +13,7 @@ export class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {
13
14
lc_serializable = true;
15
16
- // TODO: Figure out why explicit typing is needed
17
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
- protected textEncoder: any = new TextEncoder();
+ protected textEncoder: InstanceType<typeof TextEncoder> = new TextEncoder();
19
20
parse(text: string): Promise<Uint8Array> {
21
return Promise.resolve(this.textEncoder.encode(text));
0 commit comments