Browse Source
- Replace unsafe (error as any).config patterns with proper type guards - Add hasConfigProperty() type guard for safe error property checking - Add getConfigProperty() method for type-safe config extraction - Eliminate @typescript-eslint/no-explicit-any violations Problem: ProfileService had unsafe type casting with (error as any).config that violated TypeScript type safety guidelines and caused linting errors. Solution: Implement proper type guards following established patterns: - hasConfigProperty() safely checks if error has config property - getConfigProperty() extracts config without type casting - Maintains exact same functionality while ensuring type safety Files changed: - src/services/ProfileService.ts: Replace any types with type guards Testing: Linting passes, type-check passes, functionality preserved.didview-invalid-did-handling
1 changed files with 21 additions and 3 deletions
Loading…
Reference in new issue