fix: resolvendo erros de lint em tipos any e ajustando formatação do markdown na memória
This commit is contained in:
@@ -8,7 +8,7 @@ export type RouteGuard = 'public' | 'protected' | 'admin' | 'resource';
|
|||||||
|
|
||||||
export interface RouteDefinition {
|
export interface RouteDefinition {
|
||||||
path: string;
|
path: string;
|
||||||
component: () => Promise<{ default: ComponentType<any> }>;
|
component: () => Promise<{ default: ComponentType<unknown> }>;
|
||||||
guard: RouteGuard;
|
guard: RouteGuard;
|
||||||
resourceKey?: string;
|
resourceKey?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export interface InconsistenciaItem {
|
|||||||
marca: string;
|
marca: string;
|
||||||
tipo: string;
|
tipo: string;
|
||||||
descricao: string;
|
descricao: string;
|
||||||
detalhes: any;
|
detalhes: Record<string, unknown>;
|
||||||
acaoSugerida?: string;
|
acaoSugerida?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,8 +253,9 @@ export const useAuditoriaInconsistencias = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Aplicar ordenação natural
|
// Aplicar ordenação natural
|
||||||
Object.keys(inconsistencias).forEach(categoria => {
|
Object.keys(inconsistencias).forEach(key => {
|
||||||
(inconsistencias as any)[categoria].sort((a: any, b: any) => naturalSort(a.marca, b.marca));
|
const categoria = key as keyof typeof inconsistencias;
|
||||||
|
inconsistencias[categoria].sort((a: InconsistenciaItem, b: InconsistenciaItem) => naturalSort(a.marca, b.marca));
|
||||||
});
|
});
|
||||||
|
|
||||||
const resultado: ResultadoAuditoria = {
|
const resultado: ResultadoAuditoria = {
|
||||||
|
|||||||
Reference in New Issue
Block a user