Skip to content

Commit

Permalink
LINT: import types
Browse files Browse the repository at this point in the history
Also prefer `| undefined`, which was reported by another user and might
be related to the TypeScript version bump here.
  • Loading branch information
scotttrinh committed Jun 28, 2023
1 parent ec2f019 commit cac2245
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/driver/src/baseConn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
*/

import { INVALID_CODEC, NullCodec, NULL_CODEC } from "./codecs/codecs";
import { ICodec, uuid } from "./codecs/ifaces";
import type { ICodec, uuid } from "./codecs/ifaces";
import { NamedTupleCodec } from "./codecs/namedtuple";
import { ObjectCodec } from "./codecs/object";
import { CodecsRegistry } from "./codecs/registry";
import { type CodecsRegistry } from "./codecs/registry";
import { EmptyTupleCodec, EMPTY_TUPLE_CODEC, TupleCodec } from "./codecs/tuple";
import { versionGreaterThanOrEqual } from "./utils";
import * as errors from "./errors";
Expand All @@ -29,10 +29,10 @@ import {
Cardinality,
LegacyHeaderCodes,
OutputFormat,
QueryOptions,
ProtocolVersion,
QueryArgs,
ServerSettings,
type QueryOptions,
type ProtocolVersion,
type QueryArgs,
type ServerSettings,
} from "./ifaces";
import {
ReadBuffer,
Expand All @@ -44,7 +44,7 @@ import {
import * as chars from "./primitives/chars";
import Event from "./primitives/event";
import LRU from "./primitives/lru";
import { SerializedSessionState, Session } from "./options";
import { type SerializedSessionState, Session } from "./options";

export const PROTO_VER: ProtocolVersion = [1, 0];
export const PROTO_VER_MIN: ProtocolVersion = [0, 9];
Expand Down Expand Up @@ -478,9 +478,9 @@ export class BaseRawConnection {

this._sendData(wb.unwrap());

let cardinality: number | void;
let inTypeId: uuid | void;
let outTypeId: uuid | void;
let cardinality: number | undefined;
let inTypeId: uuid | undefined;
let outTypeId: uuid | undefined;
let inCodec: ICodec | null;
let outCodec: ICodec | null;
let capabilities: number = -1;
Expand Down

0 comments on commit cac2245

Please sign in to comment.