Skip to content

fix: Update VariableValuesObject type to handle JSON type variable #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 29, 2021

Conversation

yavorona
Copy link
Contributor

Summary

Update VariableValuesObject interface to handle JSON type variable.

Issue: #117

@yavorona yavorona removed their assignment Jul 27, 2021
Copy link
Contributor

@zashraf1985 zashraf1985 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good! but i have a concern about if this change would break for the existing users or not.. see if it makes sense to you?

README.md Outdated
@@ -318,7 +318,7 @@ The following type definitions are used in the `ReactSDKClient` interface:

- `UserAttributes : { [name: string]: any }`
- `User : { id: string | null, attributes: userAttributes }`
- `VariableValuesObject : { [key: string]: boolean | number | string | null }`
- `VariableValuesObject : { [key: string]: unknown }`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should keep it unknown. will the user need to cast it or provide a type now? Will it break for the users who are already using it directly as any?

@yavorona yavorona merged commit a30e053 into master Jul 29, 2021
@yavorona yavorona deleted the pnguen/fix-type-mismatch branch July 29, 2021 18:28
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.

2 participants