Skip to content

Commit

Permalink
Fix TypeScript error when using Deno 2 (#266)
Browse files Browse the repository at this point in the history
* Fix TypeScript error when using Deno 2
  • Loading branch information
teleclimber authored Oct 5, 2024
1 parent 4fc4440 commit c7d4365
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
Expand Down

0 comments on commit c7d4365

Please sign in to comment.