Skip to content

fix: add missing SiteConfig service override typings and definitions#281

Draft
vkumar-sonata wants to merge 1 commit into
openedx:mainfrom
vkumar-sonata:fix/site-config-service-overrides
Draft

fix: add missing SiteConfig service override typings and definitions#281
vkumar-sonata wants to merge 1 commit into
openedx:mainfrom
vkumar-sonata:fix/site-config-service-overrides

Conversation

@vkumar-sonata

@vkumar-sonata vkumar-sonata commented Jul 21, 2026

Copy link
Copy Markdown

Description

This PR aligns the SiteConfig TypeScript definitions with the existing runtime implementation.

The runtime initialize() function supports overriding the default service implementations through properties defined on SiteConfig:

  • loggingService
  • analyticsService
  • authService

However, these properties are currently not represented in the SiteConfig TypeScript definitions. As a result, consumers receive TypeScript compilation errors when attempting to register supported service overrides through site configuration.

Fix

Add the missing service override definitions to OptionalSiteConfig so that the TypeScript API matches the existing runtime behavior.

Validation

  • TypeScript compilation succeeds
  • No runtime changes introduced

Context

Discovered during Datadog Browser Logs and RUM integration in frontend-site-learner-home.

LLM usage notice

Built with assistance from Copilot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant