Skip to content

Commit

Permalink
Import Database type from correct file (#11262)
Browse files Browse the repository at this point in the history
* Import Database type from correct file

* Add changeset
  • Loading branch information
nezouse authored Jun 14, 2024
1 parent 6b541ec commit 9b03023
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nice-pillows-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/db': patch
---

Import type `Database` from correct file
2 changes: 1 addition & 1 deletion packages/db/virtual.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare module 'astro:db' {
type RuntimeConfig = typeof import('./dist/_internal/runtime/virtual.js');

export const db: import('./dist/_internal/runtime/virtual.js').Database;
export const db: import('./dist/runtime/index.js').Database;
export const dbUrl: string;

export const sql: RuntimeConfig['sql'];
Expand Down

0 comments on commit 9b03023

Please sign in to comment.