import type { BuildTimeConstants , Runtime , UserBackendDependencies , UserBackendResolve , } from './types' ; export type AdditionalUserData = { constants : BuildTimeConstants ; } & Omit < UserBackendDependencies , 'runtime' > ; export const createUserResolve = ( runtime , additionalContext ) : UserBackendResolve => { return { runtime , ... runtime , ... additionalContext . constants , routesTrie : additionalContext . routesTrie , domain : additionalContext . domain , domainInterop : additionalContext . domainInterop , eventstoreAdapter : runtime . eventStoreAdapter , eventSubscriberScope : additionalContext . eventSubscriberScope , performanceTracer : additionalContext . performanceTracer , seedClientEnvs : additionalContext . seedClientEnvs , eventListeners : additionalContext . eventListeners , } ; } ;