From 261bb21bedbd233721446c1a6af23beb78da65d4 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 14 Nov 2024 16:22:21 +0100 Subject: [PATCH] fix type exports --- .changeset/fuzzy-cameras-listen.md | 5 +++++ src/types/index.d.ts | 30 ++++++++++++------------------ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 .changeset/fuzzy-cameras-listen.md diff --git a/.changeset/fuzzy-cameras-listen.md b/.changeset/fuzzy-cameras-listen.md new file mode 100644 index 0000000..d7b8fdd --- /dev/null +++ b/.changeset/fuzzy-cameras-listen.md @@ -0,0 +1,5 @@ +--- +"@effect/wa-sqlite": patch +--- + +fix type exports diff --git a/src/types/index.d.ts b/src/types/index.d.ts index d6d959e..cb8e95a 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -863,7 +863,7 @@ declare interface SQLiteAPI { } /** @ignore */ -declare module "wa-sqlite/src/sqlite-constants.js" { +declare module "@effect/wa-sqlite/src/sqlite-constants.js" { export const SQLITE_OK: 0 export const SQLITE_ERROR: 1 export const SQLITE_INTERNAL: 2 @@ -1098,8 +1098,8 @@ declare module "wa-sqlite/src/sqlite-constants.js" { export const SQLITE_PREPARE_NO_VTAB: 0x04 } -declare module "wa-sqlite" { - export * from "wa-sqlite/src/sqlite-constants.js" +declare module "@effect/wa-sqlite" { + export * from "@effect/wa-sqlite/src/sqlite-constants.js" /** * @ignore @@ -1118,20 +1118,20 @@ declare module "wa-sqlite" { } /** @ignore */ -declare module "wa-sqlite/dist/wa-sqlite.mjs" { +declare module "@effect/wa-sqlite/dist/wa-sqlite.mjs" { function ModuleFactory(config?: object): Promise export = ModuleFactory } /** @ignore */ -declare module "wa-sqlite/dist/wa-sqlite-async.mjs" { +declare module "@effect/wa-sqlite/dist/wa-sqlite-async.mjs" { function ModuleFactory(config?: object): Promise export = ModuleFactory } /** @ignore */ -declare module "wa-sqlite/src/VFS.js" { - export * from "wa-sqlite/src/sqlite-constants.js" +declare module "@effect/wa-sqlite/src/VFS.js" { + export * from "@effect/wa-sqlite/src/sqlite-constants.js" export class Base { mxPathName: number @@ -1259,8 +1259,8 @@ declare module "wa-sqlite/src/VFS.js" { } /** @ignore */ -declare module "wa-sqlite/src/examples/IndexedDbVFS.js" { - import * as VFS from "wa-sqlite/src/VFS.js" +declare module "@effect/wa-sqlite/src/examples/IndexedDbVFS.js" { + import * as VFS from "@effect/wa-sqlite/src/VFS.js" export class IndexedDbVFS extends VFS.Base { /** * @param {string} idbName Name of IndexedDB database. @@ -1312,8 +1312,8 @@ declare module "wa-sqlite/src/examples/IndexedDbVFS.js" { } /** @ignore */ -declare module "wa-sqlite/src/examples/MemoryVFS.js" { - import * as VFS from "wa-sqlite/src/VFS.js" +declare module "@effect/wa-sqlite/src/examples/MemoryVFS.js" { + import * as VFS from "@effect/wa-sqlite/src/VFS.js" /** @ignore */ export class MemoryVFS extends VFS.Base { name: string @@ -1323,13 +1323,7 @@ declare module "wa-sqlite/src/examples/MemoryVFS.js" { } /** @ignore */ -declare module "wa-sqlite/src/examples/MemoryAsyncVFS.js" { - import { MemoryVFS } from "wa-sqlite/src/examples/MemoryVFS.js" - export class MemoryAsyncVFS extends MemoryVFS {} -} - -/** @ignore */ -declare module "wa-sqlite/src/examples/tag.js" { +declare module "@effect/wa-sqlite/src/examples/tag.js" { /** * @ignore * Template tag builder. This function creates a tag with an API and