Fix TypeScript compilation issues in packages

- 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>
This commit is contained in:
RevIQ
2026-01-09 11:46:11 +08:00
parent aee22ae454
commit 5eeef44850
7 changed files with 81 additions and 69 deletions

View File

@@ -4,8 +4,8 @@
* @module @reviq/db
*/
import type { Kysely } from "kysely";
import type { Database } from "@reviq/db-schema";
import type { Kysely } from "kysely";
import { createDb } from "./client.js";
/**
@@ -15,12 +15,11 @@ import { createDb } from "./client.js";
*/
export const db: Kysely<Database> = createDb();
/**
* Export createDb for creating custom database instances
*/
export { createDb } from "./client.js";
/**
* 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";