refactor: code review 기반 품질 개선
- HonoVariables 타입 중앙화 (types.ts로 추출, 5개 파일 중복 제거) - 6시간 pricing update cron 핸들러 추가 (syncPricingOnly 메서드) - Response.json() → c.json() 패턴 통일 (Hono 표준) - SORT_FIELD_MAP 중앙화 (constants.ts, 12개 필드 지원) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
11
src/types.ts
11
src/types.ts
@@ -416,6 +416,17 @@ export interface Env {
|
||||
ENVIRONMENT?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hono context variables
|
||||
* Shared across all request contexts
|
||||
*/
|
||||
export interface HonoVariables {
|
||||
/** Unique request ID for tracing */
|
||||
requestId: string;
|
||||
/** Authentication status (set by auth middleware) */
|
||||
authenticated?: boolean;
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Synchronization Types
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user