From 9399d601d450162e3efc386099a77802735c15c3 Mon Sep 17 00:00:00 2001 From: bombillazo Date: Mon, 23 Sep 2024 12:14:15 -0400 Subject: [PATCH] fix lint issues with deno lint --fix --- client/error.ts | 2 +- connection/connection.ts | 2 +- connection/connection_params.ts | 6 +++--- query/decode.ts | 4 ++-- query/query.ts | 4 ++-- query/transaction.ts | 2 +- tests/config.ts | 2 +- tests/helpers.ts | 2 +- tests/query_client_test.ts | 4 ++-- tests/utils_test.ts | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/client/error.ts b/client/error.ts index 7fc4cccd..35d05993 100644 --- a/client/error.ts +++ b/client/error.ts @@ -1,4 +1,4 @@ -import { type Notice } from "../connection/message.ts"; +import type { Notice } from "../connection/message.ts"; /** * A connection error diff --git a/connection/connection.ts b/connection/connection.ts index bc5d9cfe..d5bfed3f 100644 --- a/connection/connection.ts +++ b/connection/connection.ts @@ -54,7 +54,7 @@ import { type QueryResult, ResultType, } from "../query/query.ts"; -import { type ClientConfiguration } from "./connection_params.ts"; +import type { ClientConfiguration } from "./connection_params.ts"; import * as scram from "./scram.ts"; import { ConnectionError, diff --git a/connection/connection_params.ts b/connection/connection_params.ts index ac4f650e..d59b9ac7 100644 --- a/connection/connection_params.ts +++ b/connection/connection_params.ts @@ -1,9 +1,9 @@ import { parseConnectionUri } from "../utils/utils.ts"; import { ConnectionParamsError } from "../client/error.ts"; import { fromFileUrl, isAbsolute } from "../deps.ts"; -import { OidType } from "../query/oid.ts"; -import { DebugControls } from "../debug.ts"; -import { ParseArrayFunction } from "../query/array_parser.ts"; +import type { OidType } from "../query/oid.ts"; +import type { DebugControls } from "../debug.ts"; +import type { ParseArrayFunction } from "../query/array_parser.ts"; /** * The connection string must match the following URI structure. All parameters but database and user are optional diff --git a/query/decode.ts b/query/decode.ts index 38df157e..cb5d9fc7 100644 --- a/query/decode.ts +++ b/query/decode.ts @@ -1,4 +1,4 @@ -import { Oid, OidType, OidTypes, OidValue } from "./oid.ts"; +import { Oid, type OidType, OidTypes, type OidValue } from "./oid.ts"; import { bold, yellow } from "../deps.ts"; import { decodeBigint, @@ -35,7 +35,7 @@ import { decodeTid, decodeTidArray, } from "./decoders.ts"; -import { ClientControls } from "../connection/connection_params.ts"; +import type { ClientControls } from "../connection/connection_params.ts"; import { parseArray } from "./array_parser.ts"; export class Column { diff --git a/query/query.ts b/query/query.ts index 58977459..ba02a5d9 100644 --- a/query/query.ts +++ b/query/query.ts @@ -1,7 +1,7 @@ import { encodeArgument, type EncodedArg } from "./encode.ts"; import { type Column, decode } from "./decode.ts"; -import { type Notice } from "../connection/message.ts"; -import { type ClientControls } from "../connection/connection_params.ts"; +import type { Notice } from "../connection/message.ts"; +import type { ClientControls } from "../connection/connection_params.ts"; // TODO // Limit the type of parameters that can be passed diff --git a/query/transaction.ts b/query/transaction.ts index 3dadd33a..02ba0197 100644 --- a/query/transaction.ts +++ b/query/transaction.ts @@ -1,4 +1,4 @@ -import { type QueryClient } from "../client.ts"; +import type { QueryClient } from "../client.ts"; import { Query, type QueryArguments, diff --git a/tests/config.ts b/tests/config.ts index 17bf701c..4a6784cf 100644 --- a/tests/config.ts +++ b/tests/config.ts @@ -1,4 +1,4 @@ -import { +import type { ClientConfiguration, ClientOptions, } from "../connection/connection_params.ts"; diff --git a/tests/helpers.ts b/tests/helpers.ts index d1630d3e..e26a7f27 100644 --- a/tests/helpers.ts +++ b/tests/helpers.ts @@ -1,6 +1,6 @@ import { Client } from "../client.ts"; import { Pool } from "../pool.ts"; -import { type ClientOptions } from "../connection/connection_params.ts"; +import type { ClientOptions } from "../connection/connection_params.ts"; export function generateSimpleClientTest( client_options: ClientOptions, diff --git a/tests/query_client_test.ts b/tests/query_client_test.ts index c096049a..abc7332f 100644 --- a/tests/query_client_test.ts +++ b/tests/query_client_test.ts @@ -14,8 +14,8 @@ import { assertThrows, } from "./test_deps.ts"; import { getMainConfiguration } from "./config.ts"; -import { PoolClient, QueryClient } from "../client.ts"; -import { ClientOptions } from "../connection/connection_params.ts"; +import type { PoolClient, QueryClient } from "../client.ts"; +import type { ClientOptions } from "../connection/connection_params.ts"; import { Oid } from "../query/oid.ts"; function withClient( diff --git a/tests/utils_test.ts b/tests/utils_test.ts index d5e418d3..1491831c 100644 --- a/tests/utils_test.ts +++ b/tests/utils_test.ts @@ -1,5 +1,5 @@ import { assertEquals, assertThrows } from "./test_deps.ts"; -import { parseConnectionUri, Uri } from "../utils/utils.ts"; +import { parseConnectionUri, type Uri } from "../utils/utils.ts"; import { DeferredAccessStack, DeferredStack } from "../utils/deferred.ts"; class LazilyInitializedObject {