Skip to content

Commit dedbc3e

Browse files
committed
pg-protocol: Narrow type of BufferReader.encoding
`BufferReader.encoding` to `BufferEncoding` from `string` to match the new signature of `Buffer.toString`.
1 parent 52dbd86 commit dedbc3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/pg-protocol/src/buffer-reader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export class BufferReader {
22
private buffer: Buffer = Buffer.allocUnsafe(0)
33

44
// TODO(bmc): support non-utf8 encoding?
5-
private encoding: string = 'utf-8'
5+
private encoding: BufferEncoding = 'utf-8'
66

77
constructor(private offset: number = 0) {}
88

0 commit comments

Comments
 (0)