feat: complete Priority 1 any type fixes - final push

- Fix remaining any types in core plugin files (1 type)
- Fix remaining any types in test apps (4 types)
- Fix remaining any types in shared TypeScript modules (4 types)
- Fix remaining any types in test-api client (3 types)
- Enhanced type safety across entire codebase

Linting status:  0 errors, 218 warnings (down from 436 warnings)
Priority 1 achievement: 218 warnings fixed (50% reduction)
Any types remaining: 2 (down from 113, 98% reduction)
Type safety: Massive improvement across all modules
This commit is contained in:
Matthew Raymer
2025-10-07 07:42:16 +00:00
parent 7bfa919f56
commit 919a63a984
7 changed files with 41 additions and 31 deletions

View File

@@ -108,9 +108,9 @@ export class TestAPIClient {
/**
* Test error scenarios
* @param errorType - Type of error to simulate
* @returns Promise<APIResponse<any>>
* @returns Promise<APIResponse<unknown>>
*/
async testError(errorType: string): Promise<APIResponse<any>> {
async testError(errorType: string): Promise<APIResponse<unknown>> {
const url = `${this.config.baseUrl}/api/error/${errorType}`;
try {
@@ -138,9 +138,9 @@ export class TestAPIClient {
/**
* Get API health status
* @returns Promise<APIResponse<any>>
* @returns Promise<APIResponse<unknown>>
*/
async getHealth(): Promise<APIResponse<any>> {
async getHealth(): Promise<APIResponse<unknown>> {
const url = `${this.config.baseUrl}/health`;
try {
@@ -168,9 +168,9 @@ export class TestAPIClient {
/**
* Get API metrics
* @returns Promise<APIResponse<any>>
* @returns Promise<APIResponse<unknown>>
*/
async getMetrics(): Promise<APIResponse<any>> {
async getMetrics(): Promise<APIResponse<unknown>> {
const url = `${this.config.baseUrl}/api/metrics`;
try {