@livestore/wa-sqlite 1.0.1-dev.3 → 1.0.1-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livestore/wa-sqlite",
3
- "version": "1.0.1-dev.3",
3
+ "version": "1.0.1-dev.5",
4
4
  "type": "module",
5
5
  "main": "src/sqlite-api.js",
6
6
  "types": "src/types/index.d.ts",
@@ -33,7 +33,7 @@ type SQLiteCompatibleType = number|string|Uint8Array|Array<number>|bigint|null;
33
33
  * @see https://sqlite.org/vfs.html
34
34
  * @see https://sqlite.org/c3ref/io_methods.html
35
35
  */
36
- declare interface SQLiteVFS {
36
+ interface SQLiteVFS {
37
37
  /** Maximum length of a file path in UTF-8 bytes (default 64) */
38
38
  mxPathName?: number;
39
39
 
@@ -178,7 +178,7 @@ declare interface SQLitePrepareOptions {
178
178
  *
179
179
  * @see https://sqlite.org/c3ref/funclist.html
180
180
  */
181
- declare interface SQLiteAPI {
181
+ interface SQLiteAPI {
182
182
  /**
183
183
  * Bind a collection of values to a statement
184
184
  *
@@ -617,9 +617,9 @@ declare interface SQLiteAPI {
617
617
  * Reset a prepared statement object
618
618
  * @see https://www.sqlite.org/c3ref/reset.html
619
619
  * @param stmt prepared statement pointer
620
- * @returns Promise-wrapped `SQLITE_OK` (rejects on error)
620
+ * @returns `SQLITE_OK` (rejects on error)
621
621
  */
622
- reset(stmt: number): Promise<number>;
622
+ reset(stmt: number): number;
623
623
 
624
624
  /**
625
625
  * Convenience function to call `result_*` based of the type of `value`
@@ -843,6 +843,11 @@ declare interface SQLiteAPI {
843
843
  vfs_register(vfs: SQLiteVFS, makeDefault?: boolean): number;
844
844
  }
845
845
 
846
+ declare module '@livestore/wa-sqlite' {
847
+ export type SQLiteAPI_ = SQLiteAPI;
848
+ export type SQLiteVFS_ = SQLiteVFS;
849
+ }
850
+
846
851
  /** @ignore */
847
852
  declare module '@livestore/wa-sqlite/src/sqlite-constants.js' {
848
853
  export const SQLITE_OK: 0;