@livestore/wa-sqlite 1.0.1-dev.4 → 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.4",
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",
@@ -15,7 +15,7 @@
15
15
  * each element converted to a byte); SQLite always returns blob data as
16
16
  * `Uint8Array`
17
17
  */
18
- export type SQLiteCompatibleType = number|string|Uint8Array|Array<number>|bigint|null;
18
+ type SQLiteCompatibleType = number|string|Uint8Array|Array<number>|bigint|null;
19
19
 
20
20
  /**
21
21
  * SQLite Virtual File System object
@@ -33,7 +33,7 @@ export type SQLiteCompatibleType = number|string|Uint8Array|Array<number>|bigint
33
33
  * @see https://sqlite.org/vfs.html
34
34
  * @see https://sqlite.org/c3ref/io_methods.html
35
35
  */
36
- export 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
- export interface SQLiteAPI {
181
+ interface SQLiteAPI {
182
182
  /**
183
183
  * Bind a collection of values to a statement
184
184
  *
@@ -843,6 +843,11 @@ export 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;