Skip to content
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

[Bug]: malformed export/typing #266

Open
suga0828 opened this issue Aug 29, 2024 · 1 comment
Open

[Bug]: malformed export/typing #266

suga0828 opened this issue Aug 29, 2024 · 1 comment
Labels

Comments

@suga0828
Copy link

Which Platforms?

Both

Which React Native Version?

0.74.1

Which @braze/react-native-sdk SDK version?

12.1.0

Repro Rate

100%

Steps To Reproduce

Example:

  1. Install @braze/react-native-sdk
  2. import * as Braze from "@braze/react-native-sdk" (as in documentation).
  3. Braze.changeUser("id")
  4. Run the app.

Expected Behavior

Typing should works.work

Actual Incorrect Behavior

The real error is that export and typing defined inside the lib don't match (exporting default in index.js but individual typing in index.d.ts)
image

Verbose Logs

No response

Additional Information

No response

@suga0828 suga0828 added the bug label Aug 29, 2024
@jerielng
Copy link
Collaborator

@suga0828 Sorry, could you clarify what exactly is the error you are seeing here? What behavior in the typing are you expecting to see? Is it on a specific set of methods, or just the top-level Braze object as a whole?

If you could provide any specific examples on what you are expecting vs. what is actually showing up in your editor, that would help us assist you better. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants