braze-react-native-sdk icon indicating copy to clipboard operation
braze-react-native-sdk copied to clipboard

[Bug]: malformed export/typing

Open suga0828 opened this issue 1 year ago • 1 comments
trafficstars

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 avatar Aug 29 '24 22:08 suga0828

@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!

jerielng avatar Sep 12 '24 19:09 jerielng

Closing out this issue due to inactivity.

If you would need further assistance, feel free to reach out to our support team at [email protected] with the supporting information listed above.

Thank you!

vanessaland avatar Dec 05 '24 21:12 vanessaland