Skip to content

Conversation

doptster
Copy link

@doptster doptster commented May 29, 2025

Changed MoEngageLogLevel from const enum to enum in sdk/core/src/models/MoEngageLogLevel.ts. This improves compatibility for consumers of the SDK by avoiding issues with TypeScript compilation and toolchain support.

Jira Ticket

N/A

Description

Description: This PR changes the definition of MoEngageLogLevel in sdk/core/src/models/MoEngageLogLevel.ts from const enum to enum.
Reason:
Using const enum can cause compatibility issues in SDKs or libraries consumed by external TypeScript or JavaScript projects, as it requires specific TypeScript compilation settings and isn’t supported by all toolchains. Switching to a regular enum ensures broader compatibility for all consumers.
image

Changes:
Replaced const enum MoEngageLogLevel with enum MoEngageLogLevel.
No functional changes; this is a compatibility and interoperability improvement.

Changed MoEngageLogLevel from const enum to enum in sdk/core/src/models/MoEngageLogLevel.ts.
This improves compatibility for consumers of the SDK by avoiding issues with TypeScript compilation and toolchain support.
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