0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/db/virtual.d.ts
Ben Holmes 219c49473f
fix type error in seed stub on initial setup (#10457)
* fix: move db type to base types for seed stub

* chore: changeset

* fix(test): bad NOW import
2024-03-18 07:55:39 -04:00

36 lines
1.5 KiB
TypeScript

declare module 'astro:db' {
type RuntimeConfig = typeof import('./dist/_internal/runtime/config.js');
export const db: import('./dist/_internal/runtime/config.js').LibSQLDatabase;
export const dbUrl: string;
export const sql: RuntimeConfig['sql'];
export const NOW: RuntimeConfig['NOW'];
export const TRUE: RuntimeConfig['TRUE'];
export const FALSE: RuntimeConfig['FALSE'];
export const column: RuntimeConfig['column'];
export const defineDb: RuntimeConfig['defineDb'];
export const defineTable: RuntimeConfig['defineTable'];
export const eq: RuntimeConfig['eq'];
export const gt: RuntimeConfig['gt'];
export const gte: RuntimeConfig['gte'];
export const lt: RuntimeConfig['lt'];
export const lte: RuntimeConfig['lte'];
export const ne: RuntimeConfig['ne'];
export const isNull: RuntimeConfig['isNull'];
export const isNotNull: RuntimeConfig['isNotNull'];
export const inArray: RuntimeConfig['inArray'];
export const notInArray: RuntimeConfig['notInArray'];
export const exists: RuntimeConfig['exists'];
export const notExists: RuntimeConfig['notExists'];
export const between: RuntimeConfig['between'];
export const notBetween: RuntimeConfig['notBetween'];
export const like: RuntimeConfig['like'];
export const notIlike: RuntimeConfig['notIlike'];
export const not: RuntimeConfig['not'];
export const asc: RuntimeConfig['asc'];
export const desc: RuntimeConfig['desc'];
export const and: RuntimeConfig['and'];
export const or: RuntimeConfig['or'];
}