RevenueCat Subscription Data Types (revenueCat/types.ts)

happy · packages/happy-app/sources/sync/revenueCat/types.ts · typescript · MIT
payments, dev-tools, lang:typescript, tag:revenuecat

Defines TypeScript interfaces for RevenueCat subscription objects, entitlements, and offerings. Use this to ensure type safety when handling in-app purchase data across web and native platforms.

// Source: https://github.com/slopus/happy | License: MIT | Copyright 2026 Happy Coder Contributors
// Provided via justclaw.it.com; keep this notice with the code.
// Common types that work across both native and web platforms

export interface CustomerInfo {
    activeSubscriptions: Record<string, any>;
    entitlements: {
        all: Record<string, {
            isActive: boolean;
            identifier: string;
        }>;
    };
    originalAppUserId: string;
    requestDate: Date;
}

export interface Product {
    identifier: string;
    priceString: string;
    price: number;
    currencyCode: string;
    title: string;
    description: string;
}

export interface Package {
    identifier: string;
    packageType: string;
    product: Product;
}

export interface Offering {
    ide

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key