diff --git a/examples/stale-data-ux.ts b/examples/stale-data-ux.ts index 5600476..89cc2cd 100644 --- a/examples/stale-data-ux.ts +++ b/examples/stale-data-ux.ts @@ -88,9 +88,9 @@ class AndroidStaleDataUX { ); // Create Snackbar - const snackbar = { - message, - duration: 'LENGTH_INDEFINITE', + const _snackbar = { + _message: message, + _duration: 'LENGTH_INDEFINITE', action: { text: this.context.getString(I18N_KEYS['staleness.banner.action_refresh']), callback: () => this.refreshData() @@ -153,7 +153,7 @@ class iOSStaleDataUX { showBannerView(hoursSinceUpdate: number): void { // Create banner view - const banner = { + const _banner = { title: NSLocalizedString(I18N_KEYS['staleness.banner.title'], ''), message: NSLocalizedString(I18N_KEYS['staleness.banner.message'], '').replace('{hours}', hoursSinceUpdate.toString()), backgroundColor: 'systemYellow', diff --git a/packages/polling-contracts/src/outbox-pressure.ts b/packages/polling-contracts/src/outbox-pressure.ts index b040e42..9fa7fcd 100644 --- a/packages/polling-contracts/src/outbox-pressure.ts +++ b/packages/polling-contracts/src/outbox-pressure.ts @@ -60,7 +60,7 @@ export class OutboxPressureManager { } } - private async evictFIFO(count: number): Promise { + private async evictFIFO(_count: number): Promise { // Simulate: DELETE FROM notification_outbox // WHERE delivered_at IS NULL // ORDER BY created_at ASC @@ -68,7 +68,7 @@ export class OutboxPressureManager { // Evicting oldest notifications (FIFO policy) } - private async evictLIFO(count: number): Promise { + private async evictLIFO(_count: number): Promise { // Simulate: DELETE FROM notification_outbox // WHERE delivered_at IS NULL // ORDER BY created_at DESC @@ -76,7 +76,7 @@ export class OutboxPressureManager { // Evicting newest notifications (LIFO policy) } - private async evictByPriority(count: number): Promise { + private async evictByPriority(_count: number): Promise { // Simulate: DELETE FROM notification_outbox // WHERE delivered_at IS NULL // ORDER BY priority ASC, created_at ASC diff --git a/src/observability.ts b/src/observability.ts index d902442..4891086 100644 --- a/src/observability.ts +++ b/src/observability.ts @@ -88,9 +88,9 @@ export class ObservabilityManager { } // Console output with structured format - const logMessage = `[${eventCode}] ${message}`; - const logData = data ? ` | Data: ${JSON.stringify(data)}` : ''; - const logDuration = duration ? ` | Duration: ${duration}ms` : ''; + const _logMessage = `[${eventCode}] ${message}`; + const _logData = data ? ` | Data: ${JSON.stringify(data)}` : ''; + const _logDuration = duration ? ` | Duration: ${duration}ms` : ''; switch (level) { case 'INFO': diff --git a/src/web/index.ts b/src/web/index.ts index 4c921b0..c4ee6ff 100644 --- a/src/web/index.ts +++ b/src/web/index.ts @@ -197,7 +197,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin { /** * Set adaptive scheduling (mock for web) */ - async setAdaptiveScheduling(options: { enabled: boolean }): Promise { + async setAdaptiveScheduling(_options: { enabled: boolean }): Promise { // Adaptive scheduling set } @@ -257,7 +257,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin { /** * Schedule content fetch (web implementation) */ - async scheduleContentFetch(config: ContentFetchConfig): Promise { + async scheduleContentFetch(_config: ContentFetchConfig): Promise { // Content fetch scheduled (web mock implementation) // Mock implementation - in real app would use Service Worker } @@ -265,7 +265,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin { /** * Schedule user notification (web implementation) */ - async scheduleUserNotification(config: UserNotificationConfig): Promise { + async scheduleUserNotification(_config: UserNotificationConfig): Promise { // User notification scheduled (web mock implementation) // Mock implementation - in real app would use browser notifications } @@ -273,7 +273,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin { /** * Schedule dual notification (web implementation) */ - async scheduleDualNotification(config: DualScheduleConfiguration): Promise { + async scheduleDualNotification(_config: DualScheduleConfiguration): Promise { // Dual notification scheduled (web mock implementation) // Mock implementation combining content fetch and user notification } @@ -309,7 +309,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin { /** * Update dual schedule configuration (web implementation) */ - async updateDualScheduleConfig(config: DualScheduleConfiguration): Promise { + async updateDualScheduleConfig(_config: DualScheduleConfiguration): Promise { // Dual schedule config updated (web mock implementation) } @@ -358,14 +358,14 @@ export class DailyNotificationWeb implements DailyNotificationPlugin { /** * Register callback (web implementation) */ - async registerCallback(name: string, _callback: (...args: unknown[]) => void): Promise { + async registerCallback(_name: string, _callback: (...args: unknown[]) => void): Promise { // Callback registered (web mock implementation) } /** * Unregister callback (web implementation) */ - async unregisterCallback(name: string): Promise { + async unregisterCallback(_name: string): Promise { // Callback unregistered (web mock implementation) } @@ -575,12 +575,12 @@ export class DailyNotificationWeb implements DailyNotificationPlugin { } // Static Daily Reminder Methods - async scheduleDailyReminder(options: DailyReminderOptions): Promise { + async scheduleDailyReminder(_options: DailyReminderOptions): Promise { // Schedule daily reminder called (web mock implementation) // Mock implementation for web } - async cancelDailyReminder(reminderId: string): Promise { + async cancelDailyReminder(_reminderId: string): Promise { // Cancel daily reminder called (web mock implementation) // Mock implementation for web } @@ -590,7 +590,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin { return []; // Mock empty array for web } - async updateDailyReminder(reminderId: string, options: DailyReminderOptions): Promise { + async updateDailyReminder(_reminderId: string, _options: DailyReminderOptions): Promise { // Update daily reminder called (web mock implementation) // Mock implementation for web }