diff options
author | 2024-06-14 22:29:21 +0200 | |
---|---|---|
committer | 2024-06-14 16:29:21 -0400 | |
commit | 9b030239cb4db4e51a8a1da638743b60837f7e1a (patch) | |
tree | 50389cfbd185684c89bb5f6ab77cb91b066662b6 | |
parent | 6b541ec4686587d750e71eb401f1040b984407de (diff) | |
download | astro-9b030239cb4db4e51a8a1da638743b60837f7e1a.tar.gz astro-9b030239cb4db4e51a8a1da638743b60837f7e1a.tar.zst astro-9b030239cb4db4e51a8a1da638743b60837f7e1a.zip |
Import Database type from correct file (#11262)
* Import Database type from correct file
* Add changeset
-rw-r--r-- | .changeset/nice-pillows-teach.md | 5 | ||||
-rw-r--r-- | packages/db/virtual.d.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/nice-pillows-teach.md b/.changeset/nice-pillows-teach.md new file mode 100644 index 000000000..4a5ea7265 --- /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 6c93137a2..beb8266fb 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']; |