[AAE-30878] - Using types to avoid compilation isues with the new ruels

This commit is contained in:
VitoAlbano
2025-08-13 14:02:05 +01:00
committed by Vito Albano
parent 02e309b26f
commit 6fe1cf5ccc
2 changed files with 1 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ export class AdfHttpClient implements JsApiHttpClient {
return this.request<T>(url, { ...options, httpMethod: 'DELETE' }, sc, emitters);
}
private addPromiseListeners<T = any>(promise: Promise<T>, eventEmitter: EventEmitter) {
private addPromiseListeners<T = any>(promise: Promise<T>, eventEmitter: any) {
const eventPromise = Object.assign(promise, {
on<K extends string | symbol>(event: K, fn: (...args: any[]) => void, context?: any) {
eventEmitter.on(event, fn, context);

View File

@@ -23,7 +23,6 @@ import { HttpHeaders } from '@angular/common/http';
import { AuthenticationServiceInterface } from '../interfaces/authentication-service.interface';
import { RedirectAuthService } from '../oidc/redirect-auth.service';
import { EventEmitter } from 'eventemitter3';
type EventEmitterInstance = InstanceType<typeof EventEmitter>;
@Injectable({
providedIn: 'root'