diff --git a/goldens/public-api/core/primitives/event-dispatch/index.api.md b/goldens/public-api/core/primitives/event-dispatch/index.api.md index f746c41daab..2e7726d28f3 100644 --- a/goldens/public-api/core/primitives/event-dispatch/index.api.md +++ b/goldens/public-api/core/primitives/event-dispatch/index.api.md @@ -118,7 +118,7 @@ export const isCaptureEventType: (eventType: string) => boolean; export const isEarlyEventType: (eventType: string) => boolean; // @public -export function registerAppScopedDispatcher(restriction: Restriction, appId: string, dispatcher: (eventInfo: EventInfo) => void, dataContainer?: EarlyJsactionDataContainer): void; +export function registerAppScopedDispatcher(appId: string, dispatcher: (eventInfo: EventInfo) => void, dataContainer?: EarlyJsactionDataContainer): void; // @public export function registerDispatcher(eventContract: UnrenamedEventContract, dispatcher: EventDispatcher): void; diff --git a/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts b/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts index ecc078616dd..6c366cfbe8f 100644 --- a/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts +++ b/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {Restriction} from './restriction'; import { EarlyJsactionDataContainer, addEvents, @@ -50,7 +49,6 @@ export function getAppScopedQueuedEventInfos( * window. */ export function registerAppScopedDispatcher( - restriction: Restriction, appId: string, dispatcher: (eventInfo: EventInfo) => void, dataContainer: EarlyJsactionDataContainer = window, diff --git a/packages/core/primitives/event-dispatch/src/bootstrap_global.ts b/packages/core/primitives/event-dispatch/src/bootstrap_global.ts index cf63a497867..ae41eeeaa7e 100644 --- a/packages/core/primitives/event-dispatch/src/bootstrap_global.ts +++ b/packages/core/primitives/event-dispatch/src/bootstrap_global.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {Restriction} from './restriction'; import { addEvents, createEarlyJsactionData, @@ -33,10 +32,7 @@ export function getGlobalQueuedEventInfos() { } /** Registers a dispatcher function on the `EarlyJsactionData` present on the window. */ -export function registerGlobalDispatcher( - restriction: Restriction, - dispatcher: (eventInfo: EventInfo) => void, -) { +export function registerGlobalDispatcher(dispatcher: (eventInfo: EventInfo) => void) { registerDispatcher(window._ejsa, dispatcher); }