- Change import { NextRequest, NextResponse } to import type { NextRequest } and import { NextResponse }
- Change import { ErrorReportingData } to import type { ErrorReportingData }
- Change import React, { Component, ReactNode } to import type { ReactNode }
- Change import { AppError, ErrorBoundaryState, ErrorRecoveryAction } to import type { AppError, ErrorBoundaryState } and import { ErrorRecoveryAction }
- Change "ar" as any to ErrorCategory.AR
- Change errorInfo: any to errorInfo: React.ErrorInfo
- Change recoveryAction: 'reconnect' as any to ErrorRecoveryAction.RECONNECT
- Change other recoveryAction strings to enum values
- Change catch (error: any) to error: unknown
- Change import { PersistOptions } to import type { PersistOptions }
- Change any to unknown in function parameters and catch
- Change all any to unknown or Record<string, unknown> in interfaces and functions
- Change Record<string, any> to Record<string, unknown>
- Change imports to import type
- Change any to unknown in error parameters
- Change imports to import type
- Change Record<string, any> to Record<string, unknown>