chore(ui): clear helper service any bucket
Replace helper and service any usages with concrete local shapes, typed records, or unknown fallbacks. Keep runtime behavior unchanged while shrinking the remaining no-explicit-any backlog. Validation: just ui lint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Injectable, ComponentRef, ApplicationRef, createComponent, EnvironmentInjector, inject} from '@angular/core';
|
||||
import {Injectable, ComponentRef, ApplicationRef, createComponent, EmbeddedViewRef, EnvironmentInjector, inject} from '@angular/core';
|
||||
import { LibraryLoadingComponent } from './library-loading/library-loading.component';
|
||||
|
||||
@Injectable({
|
||||
@@ -22,7 +22,7 @@ export class LibraryLoadingService {
|
||||
this.componentRef.instance.updateProgress(bookTitle, current, total);
|
||||
|
||||
this.appRef.attachView(this.componentRef.hostView);
|
||||
const domElem = (this.componentRef.hostView as any).rootNodes[0] as HTMLElement;
|
||||
const domElem = (this.componentRef.hostView as EmbeddedViewRef<unknown>).rootNodes[0] as HTMLElement;
|
||||
document.body.appendChild(domElem);
|
||||
document.body.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user