Skip to content

Commit 4715f3e

Browse files
fix: tsc errors
1 parent 87e4d31 commit 4715f3e

10 files changed

Lines changed: 6 additions & 8 deletions

File tree

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ bun install
22
bun lint-staged
33
bunx drizzle-kit generate
44
bunx drizzle-kit migrate
5-
bun run build
5+
bun run tsc --noEmit
6+
bun run build

src/libs/database/postgres/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Pool } from "pg";
33
import { DatabaseConfig } from "@config";
44
import { schema } from "./schema";
55

6-
const connectionString = DatabaseConfig.url;
6+
const connectionString = DatabaseConfig.DATABASE_URL;
77
const client = new Pool({ connectionString });
88

99
const db = drizzle(client, { schema });

src/libs/plugins/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

55
export * from "./plugin.builder";
66
export * from "./plugin.registry";
7-
export type * from "../types/plugin.types";

src/libs/types/elysia/sort-direction.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { SortDirection } from "./sort-direction";
21
import { z } from "@hono/zod-openapi";
2+
import { SortDirection } from "../common.types";
33

44
export type DatatableType = {
55
page: number;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export * from "./app.types";
22
export * from "./datatable";
33
export * from "./pagination";
4-
export * from "./sort-direction";

src/libs/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * from "./common.types";
22
export * from "./config.types";
33
export * from "./plugin.types";
4-
export * from "./elysia";
54
export * from "./repositories";
5+
export * from "./hono";

src/libs/types/plugin.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import type { MiddlewareHandler } from "hono";
7-
import type { Env, AppType } from "./elysia/app.types";
7+
import type { Env, AppType } from "./hono/app.types";
88

99
/**
1010
* Plugin lifecycle hooks

0 commit comments

Comments
 (0)