From 3d61875846332ec47baa74598d3a71a377b377ef Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Fri, 2 Feb 2024 13:05:47 +1100 Subject: [PATCH] fix: lint errors --- query/decoders.ts | 2 +- query/types.ts | 2 +- tests/config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/query/decoders.ts b/query/decoders.ts index 3199e844..4da275dc 100644 --- a/query/decoders.ts +++ b/query/decoders.ts @@ -23,7 +23,7 @@ const HEX = 16; const HEX_PREFIX_REGEX = /^\\x/; const TIMEZONE_RE = /([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/; -export function decodeBigint(value: string): BigInt { +export function decodeBigint(value: string): bigint { return BigInt(value); } diff --git a/query/types.ts b/query/types.ts index 9234cec4..2d6b77f1 100644 --- a/query/types.ts +++ b/query/types.ts @@ -70,7 +70,7 @@ export type Polygon = Point[]; /** * https://www.postgresql.org/docs/14/datatype-oid.html */ -export type TID = [BigInt, BigInt]; +export type TID = [bigint, bigint]; /** * Additional to containing normal dates, they can contain 'Infinity' diff --git a/tests/config.ts b/tests/config.ts index d2569146..fbd2b45f 100644 --- a/tests/config.ts +++ b/tests/config.ts @@ -1,5 +1,5 @@ import { ClientConfiguration } from "../connection/connection_params.ts"; -import config_file1 from "./config.json" assert { type: "json" }; +import config_file1 from "./config.json" with { type: "json" }; type TcpConfiguration = Omit & { host_type: "tcp";