0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Import Database type from correct file (#11262)

* Import Database type from correct file

* Add changeset
This commit is contained in:
Łukasz Stankiewicz 2024-06-14 22:29:21 +02:00 committed by GitHub
parent 6b541ec468
commit 9b030239cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/db': patch
---
Import type `Database` from correct file

View file

@ -1,7 +1,7 @@
declare module 'astro:db' { declare module 'astro:db' {
type RuntimeConfig = typeof import('./dist/_internal/runtime/virtual.js'); 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 dbUrl: string;
export const sql: RuntimeConfig['sql']; export const sql: RuntimeConfig['sql'];