feat: continue Priority 2 console cleanup and return types - excellent progress
🚀 Priority 2 Progress: - Fixed console statements in packages/polling-contracts/src/clock-sync.ts (4 statements) - Fixed console statements in src/observability.ts (3 statements) - Fixed console statements in test-apps/test-api/client.ts (8 statements) - Fixed console statements in test-apps/android-test/src/index.ts (3 statements) - Fixed missing return types in test-apps/test-api/client.ts (1 function) - Fixed missing return types in test-apps/shared/config-loader.ts (2 functions) - Fixed unused variable in test-apps/test-api/client.ts Console statements: 28 remaining (down from 44, 36% additional reduction) Return types: 37 remaining (down from 42, 12% additional reduction) Linting status: ✅ 0 errors, 117 warnings (down from 436 warnings) Total improvement: 319 warnings fixed (73% reduction) Priority 2: Excellent progress on both console cleanup and return types
This commit is contained in:
@@ -334,7 +334,7 @@ export class ConfigLoader {
|
||||
/**
|
||||
* Get notification types for a specific category
|
||||
*/
|
||||
public getNotificationTypes(category: keyof TimeSafariConfig['notificationTypes']) {
|
||||
public getNotificationTypes(category: keyof TimeSafariConfig['notificationTypes']): Record<string, unknown> {
|
||||
const config = this.getConfig();
|
||||
return config.notificationTypes[category];
|
||||
}
|
||||
@@ -367,7 +367,7 @@ export class TestLogger {
|
||||
}
|
||||
}
|
||||
|
||||
public debug(message: string, data?: Record<string, unknown>) {
|
||||
public debug(message: string, data?: Record<string, unknown>): void {
|
||||
if (this.shouldLog('debug')) {
|
||||
console.log(`[DEBUG] ${message}`, data || '');
|
||||
this.addToLogs('debug', message, data);
|
||||
|
||||
Reference in New Issue
Block a user