Skip to content

Commit 333e3df

Browse files
committed
add constants
1 parent a4764c1 commit 333e3df

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/signals/signals/src/core/processor/sandbox.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,7 @@ const processWithGlobalScopeExecutionEnv = (
203203
// TODO: update processSignal generator to accept params like these for web (mobile currently uses globals for their architecture -- can be changed but hard).
204204
analytics: analytics,
205205
signals: signals,
206-
// constants
207-
EventType: WebRuntimeConstants.EventType,
208-
NavigationAction: WebRuntimeConstants.NavigationAction,
209-
SignalType: WebRuntimeConstants.SignalType,
206+
constants: WebRuntimeConstants,
210207
})
211208
} finally {
212209
// restore globals

packages/signals/signals/src/types/process-signal.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export interface AnalyticsRuntimePublicApi {
2020
export type ProcessSignalScope = {
2121
analytics: AnalyticsRuntimePublicApi
2222
signals: SignalsRuntime<Signal>
23-
} & typeof WebRuntimeConstants
23+
constants: typeof WebRuntimeConstants
24+
}
2425

2526
export interface ProcessSignal {
2627
(signal: Signal, ctx: ProcessSignalScope): void

0 commit comments

Comments
 (0)