feat: complete Priority 1 type safety improvements

- Fix remaining any types in test apps (Android, iOS, shared TypeScript)
- Replace non-null assertions with proper null checks
- Improve type safety in EndorserAPIClient and TimeSafariNotificationManager
- Enhanced error handling with explicit null checks

Linting status:  0 errors, 329 warnings (down from 436 warnings)
Priority 1 improvements: 107 warnings fixed (25% reduction)
Type safety: 34 fewer any types, 10 non-null assertions fixed
This commit is contained in:
Matthew Raymer
2025-10-07 07:22:04 +00:00
parent 5e77ba1917
commit 7b4caef5a7
13 changed files with 123 additions and 105 deletions

View File

@@ -24,7 +24,7 @@ import {
// Mock server for testing
class MockServer {
private data: any[] = [
private data: Record<string, unknown>[] = [
{
planSummary: {
jwtId: '1704067200_abc123_def45678',
@@ -81,13 +81,13 @@ class MockServer {
// Mock storage adapter
class MockStorageAdapter {
private storage = new Map<string, any>();
private storage = new Map<string, unknown>();
async get(key: string): Promise<any> {
async get(key: string): Promise<unknown> {
return this.storage.get(key);
}
async set(key: string, value: any): Promise<void> {
async set(key: string, value: unknown): Promise<void> {
this.storage.set(key, value);
}