PurchasesEntitlementInfo type doesn't reflect all properties from actual data

Open
#708 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react-native, typescript
Domain
mobile-dev

Research direction

Start by locating the PurchasesEntitlementInfo type and searching the project for the six properties listed in the issue. Compare the declared type with the actual entitlement data, then verify that each property is accessible without a TypeScript error and run the relevant project checks.

Written by the indexing model from the issue text.

Description

bug

The following properties are not present in the PurchasesEntitlementInfo type, and you get a TypeScript error when trying to access them:

expirationDateMillis
unsubscribeDetectedAtMillis
latestPurchaseDateMillis
ownershipType
billingIssueDetectedAtMillis
originalPurchaseDateMillis
  1. Environment
    1. Platform:
    2. SDK version: 6.6.0
    3. OS version:
    4. Xcode/Android Studio version:
    5. React Native version:
    6. SDK installation (CocoaPods + version or manual):
    7. How widespread is the issue. Percentage of devices affected.
  2. Debug logs that reproduce the issue
  3. Steps to reproduce, with a description of expected vs. actual behavior
  4. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Additional context
Add any other context about the problem here.

Dominant language
TypeScript
Stars
1.2k
Forks
117
Avg merge
14h 40m
Merged PRs (30d)
40

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RevenueCat/react-native-purchases

All issues in RevenueCat/react-native-purchases

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.