- Add explicit type annotations for isolatedDeclarations - Export Database type alias from db-schema - Fix import paths and add proper type exports - Update common schemas with better exports Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
564 B
TypeScript
26 lines
564 B
TypeScript
/**
|
|
* Database client for RevIQ Publisher Dashboard
|
|
*
|
|
* @module @reviq/db
|
|
*/
|
|
|
|
import type { Database } from "@reviq/db-schema";
|
|
import type { Kysely } from "kysely";
|
|
import { createDb } from "./client.js";
|
|
|
|
/**
|
|
* Default database instance
|
|
*
|
|
* Uses DATABASE_URL environment variable for connection
|
|
*/
|
|
export const db: Kysely<Database> = createDb();
|
|
|
|
/**
|
|
* Re-export database types from db-schema
|
|
*/
|
|
export type { Database } from "@reviq/db-schema";
|
|
/**
|
|
* Export createDb for creating custom database instances
|
|
*/
|
|
export { createDb } from "./client.js";
|