Skip to content

Commit 84b941e

Browse files
committed
Use 'BufferEncoding' symbol provided by @types/node
1 parent 426e932 commit 84b941e

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

src/client.ts

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import {
4040
} from './protocol.js';
4141

4242
import {
43-
BufferEncoding,
4443
DataFormat,
4544
DataType,
4645
ValueTypeReader,

src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import type { Configuration } from './client.js';
1414
export {
1515
DataFormat,
1616
DataType,
17-
type BufferEncoding,
1817
type Point,
1918
type ValueTypeReader,
2019
} from './types.js';

src/protocol.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { sum } from './utils.js';
88
import {
99
arrayDataTypeMapping,
1010
isPoint,
11-
BufferEncoding,
1211
DataFormat,
1312
DataType,
1413
ValueTypeReader,

src/types.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { Buffer } from 'node:buffer';
22

3-
// This type isn't really exposed, but we can tease it out using some type gymnastics.
4-
export type BufferEncoding = NonNullable<
5-
Required<Parameters<Buffer['toString']>[0]>
6-
>;
7-
83
export const enum DataType {
94
Bool = 16,
105
Bytea = 17,

0 commit comments

Comments
 (0)