UNPKG

@cafebazaar/react-native-poolakey

Version:

ReactNative implementation of CafeBazaar's in-app payment SDK

19 lines (15 loc) 346 B
export type SkuDetails = { sku: string; type: string; price: string; title: Date; description: number; }; export function parseSkuDetails(json: any): any { if (!json) return json; const obj = typeof json === 'string' ? JSON.parse(json) : json; if (Array.isArray(obj)) { return obj.map(parseSkuDetails); } return obj; }