chore(ui): clear reader utility any bucket

Replace reader-adjacent any usages in footer data shapes, settings sync helpers, panel search mapping, legacy font migration, and PDF annotation serialization.

Keep the remaining no-explicit-any backlog isolated to the ebook reader core and annotation/progress surfaces.

Validation: just ui lint
This commit is contained in:
James Cox
2026-04-22 17:26:50 -04:00
committed by Zach Yale
parent 3700e356b4
commit e12f4ea827
9 changed files with 36 additions and 17 deletions
@@ -17,6 +17,10 @@ import {TranslocoService, TranslocoPipe} from '@jsverse/transloco';
import {ReadingSessionService} from '../../../shared/service/reading-session.service';
import {Location} from '@angular/common';
interface SerializedPdfAnnotation extends Record<string, unknown> {
id?: unknown;
}
@Component({
selector: 'app-pdf-reader',
standalone: true,
@@ -219,7 +223,7 @@ export class PdfReaderComponent implements OnInit, OnDestroy {
}
const serialized = this.pdfViewerService.getSerializedAnnotations();
if (serialized && serialized.length > 0) {
const cleaned = serialized.map((annotation: any) => {
const cleaned = serialized.map((annotation: SerializedPdfAnnotation) => {
const {id, ...rest} = annotation;
void id;
return rest;