@@ -1244,7 +1244,7 @@ declare class OpfsDatabase extends Database {
1244
1244
* `c`. These modes are ignored for the special `":memory:"` and `""`
1245
1245
* names and may be ignored by specific VFSes.
1246
1246
*/
1247
- constructor ( filename : string , flags : string ) ;
1247
+ constructor ( filename : string , flags ? : string ) ;
1248
1248
1249
1249
/**
1250
1250
* Import a database into OPFS storage. It only works with database files and
@@ -2032,7 +2032,15 @@ declare type Sqlite3Static = {
2032
2032
installVfs : ( obj : {
2033
2033
io ?: {
2034
2034
struct : sqlite3_io_methods ;
2035
- methods : Omit < sqlite3_io_methods , 'iVersion' > ;
2035
+ methods : { [ K in keyof sqlite3_io_methods as K extends `x${string } ` ? K : never ] ?: sqlite3_io_methods [ K ] } ;
2036
+ applyArgcCheck ?: boolean ;
2037
+ } ;
2038
+ vfs ?: {
2039
+ struct : sqlite3_vfs ;
2040
+ methods : { [ K in keyof sqlite3_vfs as K extends `x${string } ` ? K : never ] ?: sqlite3_vfs [ K ] } ;
2041
+ applyArgcCheck ?: boolean ;
2042
+ name ?: string ;
2043
+ asDefault ?: boolean ;
2036
2044
} ;
2037
2045
} ) => Sqlite3Static [ 'vfs' ] ;
2038
2046
} ;
@@ -2792,7 +2800,7 @@ declare type WASM_API = {
2792
2800
poke32 : ( addr : WasmPointer , value : number ) => WASM_API ;
2793
2801
2794
2802
/** Equivalent to poke(X,Y,'i64') */
2795
- poke64 : ( addr : WasmPointer , value : number ) => WASM_API ;
2803
+ poke64 : ( addr : WasmPointer , value : number | bigint ) => WASM_API ;
2796
2804
2797
2805
/** Equivalent to poke(X,Y,'f32') */
2798
2806
poke32f : ( addr : WasmPointer , value : number ) => WASM_API ;
@@ -5729,7 +5737,7 @@ declare type CAPI = {
5729
5737
*
5730
5738
* See https://www.sqlite.org/c3ref/vfs_find.html
5731
5739
*/
5732
- sqlite3_vfs_find : ( vfsName : string ) => sqlite3_vfs ;
5740
+ sqlite3_vfs_find : ( vfsName : string | null ) => WasmPointer ;
5733
5741
5734
5742
/**
5735
5743
* Register a new VFS. Becomes the default if the makeDflt parameter is set.
0 commit comments