Spaces:
Sleeping
Sleeping
| /** | |
| * autoDiagnosticsTypes.ts — S551: tipi puri estratti da autoDiagnostics.ts | |
| * | |
| * Contiene solo TypeScript types/interfaces senza dipendenze runtime. | |
| * Permette import type-only senza pull-in di autoDiagnostics.ts | |
| * (global error listeners, sessionStorage, Dexie, window.autoDiag, ecc.). | |
| * | |
| * Consumato da autoDiagnostics.ts (re-esporta per backward compat) e | |
| * da autoFix.ts (già importava DiagType) e da altri moduli che tipano | |
| * solo i dati diagnostici senza necessità del singleton autoDiag. | |
| */ | |
| export type DiagType = | |
| | "js-error" | |
| | "promise-rejection" | |
| | "react-crash" | |
| | "console-error" | |
| | "console-warn" | |
| | "network-error" | |
| | "info"; | |
| export interface DiagEntry { | |
| id: string; | |
| type: DiagType; | |
| message: string; | |
| stack?: string; | |
| context?: string; | |
| at: number; | |
| } | |