From 9b030239cb4db4e51a8a1da638743b60837f7e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stankiewicz?= Date: Fri, 14 Jun 2024 22:29:21 +0200 Subject: [PATCH] Import Database type from correct file (#11262) * Import Database type from correct file * Add changeset --- .changeset/nice-pillows-teach.md | 5 +++++ packages/db/virtual.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/nice-pillows-teach.md 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'];