From 4d3f0bed7f85867df73fc3d992f4a4ff9edd7fff Mon Sep 17 00:00:00 2001 From: Lucian Buzzo Date: Thu, 31 Oct 2024 12:24:16 +0000 Subject: [PATCH] f --- src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0db16f8..4c3f944 100644 --- a/src/index.ts +++ b/src/index.ts @@ -194,12 +194,14 @@ export const createClient = ( callback, options, }: { + // biome-ignore lint/suspicious/noExplicitAny: This is a private API callback: (client: any) => Promise; + // biome-ignore lint/suspicious/noExplicitAny: This is a private API options?: any; }) { const headers = { traceparent: this._tracingHelper.getTraceParent() }; - const optionsWithDefaults: any = { + const optionsWithDefaults = { maxWait: options?.maxWait ?? this._engineConfig.transactionOptions.maxWait, timeout: @@ -224,7 +226,7 @@ export const createClient = ( // it went well, then we commit the transaction await this._engine.transaction("commit", headers, info); - } catch (e: any) { + } catch (e: unknown) { // it went bad, then we rollback the transaction await this._engine.transaction("rollback", headers, info).catch(() => {});