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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user