Skip to content

Commit

Permalink
Replace two more any types
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 18, 2022
1 parent 8f07e03 commit 42310bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class Server {
const stderr = process.stderr;
socket.on('data', (chunk: string) => stderr.write(termEscape(`-- Server <<< Client\n${chunk}`)));
const write = socket.write;
socket.write = (chunk: any, cb: any) => {
socket.write = (chunk: string | Uint8Array, cb: any) => {
stderr.write(termEscape(`-- Server >>> Client\n${chunk}`));
return write.apply(socket, [chunk, cb]);
};
Expand Down
2 changes: 1 addition & 1 deletion src/user-agent/transport/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class HTTPTransport {
const stderr = process.stderr;
socket.on('data', (chunk: string) => stderr.write(termEscape(`-- Client <<< Server\n${chunk}`)));
const write = socket.write;
socket.write = (chunk: any, cb: any) => {
socket.write = (chunk: string | Uint8Array, cb: any) => {
stderr.write(termEscape(`-- Client >>> Server\n${chunk}`));
return write.apply(socket, [chunk, cb]);
};
Expand Down

0 comments on commit 42310bf

Please sign in to comment.