Skip to content

Commit

Permalink
fix type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Nov 14, 2024
1 parent 440f365 commit 261bb21
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-cameras-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/wa-sqlite": patch
---

fix type exports
30 changes: 12 additions & 18 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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<any>
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<any>
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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 261bb21

Please sign in to comment.