From b7f12c7e453f8a33f641289ef7a9386ccc18c47e Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Sun, 1 Dec 2024 11:13:37 +0100 Subject: [PATCH] Convert more types to Scalar --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index ca1ed8f..53d4184 100644 --- a/src/index.ts +++ b/src/index.ts @@ -151,7 +151,7 @@ export type DB = { execute: (query: string, params?: Scalar[]) => Promise; executeWithHostObjects: ( query: string, - params?: any[] + params?: Scalar[] ) => Promise; executeBatch: (commands: SQLBatchTuple[]) => Promise; loadFile: (location: string) => Promise; @@ -169,7 +169,7 @@ export type DB = { rollbackHook: (callback?: (() => void) | null) => void; prepareStatement: (query: string) => PreparedStatementObj; loadExtension: (path: string, entryPoint?: string) => void; - executeRaw: (query: string, params?: any[]) => Promise; + executeRaw: (query: string, params?: Scalar[]) => Promise; getDbPath: (location?: string) => string; reactiveExecute: (params: { query: string;