refactor(core): remove unused restriction parameter

Removes the `restriction` parameter from `registerAppScopedDispatcher` and `registerGlobalDispatcher`.

(cherry picked from commit d072791f13)
This commit is contained in:
SkyZeroZx
2026-01-17 19:20:04 -05:00
committed by Andrew Scott
parent 4f0d29d92a
commit cfe7340270
3 changed files with 2 additions and 8 deletions
@@ -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;
@@ -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,
@@ -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);
}