Skip to content

Commit

Permalink
Update flow type followed by #696
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Sep 7, 2019
1 parent 4ebc2ef commit 7880523
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ declare type Common = {

declare type ID = string

declare type Discount = {
identifier: string,
type: string,
numberOfPeriods: string,
price: string,
localizedPrice: string,
paymentMode: string,
subscriptionPeriod: string,
}

export type Product<ID> = Common & {
type: "inapp" | "iap",
productId: ID,
Expand All @@ -18,6 +28,7 @@ export type Product<ID> = Common & {
export type Subscription<ID> = Common & {
type: "subs" | "sub",
productId: ID,
discounts?: Discount[],

introductoryPrice?: string,
introductoryPricePaymentModeIOS?: string,
Expand Down

0 comments on commit 7880523

Please sign in to comment.