Skip to content

Commit aaf23f8

Browse files
authored
Merge pull request #78 from louwers/patch-1
Fix type `sqlite3session_attach`, that accepts `0` for `tableName` arg
2 parents 853cfb7 + 8aa8e4a commit aaf23f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,8 @@ declare class SQLite3Error extends Error {
14151415
/** A pointer to a location in WASM heap memory. */
14161416
declare type WasmPointer = number;
14171417

1418+
declare type NullPointer = 0 | null | undefined;
1419+
14181420
declare type StructPtrMapper<T> = {
14191421
StructType: T;
14201422
/**
@@ -6548,7 +6550,7 @@ declare type CAPI = {
65486550
*
65496551
* See https://www.sqlite.org/session/sqlite3session_attach.html
65506552
*/
6551-
sqlite3session_attach: (pSession: WasmPointer, tableName: string) => number;
6553+
sqlite3session_attach: (pSession: WasmPointer, tableName: string | NullPointer) => number;
65526554

65536555
/**
65546556
* Set a table filter on a Session Object.

0 commit comments

Comments
 (0)