From c7d4365adb3a8aceb4a0c6077dc0d274addcea8b Mon Sep 17 00:00:00 2001 From: Olivier Forget Date: Sat, 5 Oct 2024 07:47:53 -0700 Subject: [PATCH] Fix TypeScript error when using Deno 2 (#266) * Fix TypeScript error when using Deno 2 --- src/function.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/function.ts b/src/function.ts index ba56219..5903a8f 100644 --- a/src/function.ts +++ b/src/function.ts @@ -140,7 +140,9 @@ export function wrapSqlFunction( } catch (error) { setStr( wasm, - `Error in user defined function '${name}': ${error?.message}`, + `Error in user defined function '${name}': ${ + (error as Error)?.message + }`, (ptr) => wasm.result_error(ptr, Status.SqliteError), ); }