From 25c389a42a71249966baf99218ff6ff572ebb3a1 Mon Sep 17 00:00:00 2001 From: Mitchell Adair Date: Wed, 4 Sep 2024 13:50:50 -0400 Subject: [PATCH] lint fix --- drizzle-orm/src/singlestore/driver.ts | 6 +++++- drizzle-orm/src/singlestore/session.ts | 11 +++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/drizzle-orm/src/singlestore/driver.ts b/drizzle-orm/src/singlestore/driver.ts index 152563845..78837286f 100644 --- a/drizzle-orm/src/singlestore/driver.ts +++ b/drizzle-orm/src/singlestore/driver.ts @@ -11,7 +11,11 @@ import { import { SingleStoreDatabase } from '~/singlestore-core/db.ts'; import { SingleStoreDialect } from '~/singlestore-core/dialect.ts'; import type { DrizzleConfig } from '~/utils.ts'; -import type { SingleStoreDriverClient, SingleStoreDriverPreparedQueryHKT, SingleStoreDriverQueryResultHKT } from './session.ts'; +import type { + SingleStoreDriverClient, + SingleStoreDriverPreparedQueryHKT, + SingleStoreDriverQueryResultHKT, +} from './session.ts'; import { SingleStoreDriverSession } from './session.ts'; export interface SingleStoreDriverOptions { diff --git a/drizzle-orm/src/singlestore/session.ts b/drizzle-orm/src/singlestore/session.ts index a4c7c376d..6322eb560 100644 --- a/drizzle-orm/src/singlestore/session.ts +++ b/drizzle-orm/src/singlestore/session.ts @@ -39,7 +39,9 @@ export type SingleStoreQueryResult< T = any, > = [T extends ResultSetHeader ? T : T[], FieldPacket[]]; -export class SingleStoreDriverPreparedQuery extends SingleStorePreparedQuery { +export class SingleStoreDriverPreparedQuery + extends SingleStorePreparedQuery +{ static readonly [entityKind]: string = 'SingleStoreDriverPreparedQuery'; private rawQuery: QueryOptions; @@ -295,7 +297,12 @@ export class SingleStoreDriverSession< export class SingleStoreDriverTransaction< TFullSchema extends Record, TSchema extends TablesRelationalConfig, -> extends SingleStoreTransaction { +> extends SingleStoreTransaction< + SingleStoreDriverQueryResultHKT, + SingleStoreDriverPreparedQueryHKT, + TFullSchema, + TSchema +> { static readonly [entityKind]: string = 'SingleStoreDriverTransaction'; override async transaction(