diff --git a/.changeset/nice-pillows-teach.md b/.changeset/nice-pillows-teach.md new file mode 100644 index 000000000000..4a5ea7265d99 --- /dev/null +++ b/.changeset/nice-pillows-teach.md @@ -0,0 +1,5 @@ +--- +'@astrojs/db': patch +--- + +Import type `Database` from correct file diff --git a/packages/db/virtual.d.ts b/packages/db/virtual.d.ts index 6c93137a20b5..beb8266fb44a 100644 --- a/packages/db/virtual.d.ts +++ b/packages/db/virtual.d.ts @@ -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'];