From 62a0b842feed40882e601abf2a45b9318d5aef27 Mon Sep 17 00:00:00 2001 From: haripriyan Date: Fri, 28 Apr 2023 12:11:46 +0530 Subject: [PATCH] fix: change double to number to follow ts types --- src/Purchases.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Purchases.ts b/src/Purchases.ts index 87f78cd..ffd201b 100644 --- a/src/Purchases.ts +++ b/src/Purchases.ts @@ -1,5 +1,4 @@ import { Platform } from 'react-native'; -import type { Double } from 'react-native/Libraries/Types/CodegenTypes'; /** * Chargebee SDK Config parameters. @@ -20,7 +19,7 @@ export interface AuthenticationDetail { export interface Product { readonly id: string; readonly title: string; - readonly price: Double; + readonly price: number; readonly currencyCode: string; } @@ -35,10 +34,10 @@ export interface Subscription { readonly customerId: string; readonly status: string; readonly planId: string | null; - readonly planAmount: Double | null; - readonly activatedAt: Double | null; - readonly currentTermStart: Double | null; - readonly currentTermEnd: Double | null; + readonly planAmount: number | null; + readonly activatedAt: number | null; + readonly currentTermStart: number | null; + readonly currentTermEnd: number | null; } export interface SubscriptionsRequest {