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:
parent
6b541ec468
commit
9b030239cb
2 changed files with 6 additions and 1 deletions
5
.changeset/nice-pillows-teach.md
Normal file
5
.changeset/nice-pillows-teach.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/db': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Import type `Database` from correct file
|
2
packages/db/virtual.d.ts
vendored
2
packages/db/virtual.d.ts
vendored
|
@ -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'];
|
||||||
|
|
Loading…
Reference in a new issue