javascript-sdk icon indicating copy to clipboard operation
javascript-sdk copied to clipboard

[BUG] Typo in Type Definition: experimentsIds should be experimentIds

Open alycecristines opened this issue 9 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

SDK Version

"@optimizely/optimizely-sdk": "5.3.4"

Current Behavior

There is a typo in the type definition of the library. The object for getConfig events returned by the SDK uses the property experimentIds, but the type definition incorrectly specifies it as experimentsIds.

Expected Behavior

The type definition should correctly use experimentIds to match the actual property returned by the SDK.

Steps To Reproduce

Use the SDK method that returns an object containing config events array with experimentIds array. Observe the type definition mismatch, which causes TypeScript to throw an error.

SDK Type

Browser

Node Version

v20.15.1

Browsers impacted

all

Link

No response

Logs

No response

Severity

Minor issue

Workaround/Solution

No response

Recent Change

No response

Conflicts

No response

alycecristines avatar Jan 27 '25 19:01 alycecristines