Skip to content

Commit

Permalink
Fix compilation errors. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar authored Dec 9, 2024
1 parent 99c9636 commit 91d8684
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions @types/jsb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ declare namespace jsb {
build: () => ProductDetailsParams;
}
export class ProductDetailsParams {
newBuilder: () => ProductDetailsParamsBuilder;
static newBuilder: () => ProductDetailsParamsBuilder;
}

export interface SubscriptionUpdateParamsBuilder {
Expand All @@ -1121,12 +1121,12 @@ declare namespace jsb {
build: () => SubscriptionUpdateParams;
}
export class SubscriptionUpdateParams {
newBuilder(): () => SubscriptionUpdateParamsBuilder;
static newBuilder(): () => SubscriptionUpdateParamsBuilder;
}

export class BillingFlowParams {
static ProductDetailsParams: jsb.ProductDetailsParams;
static SubscriptionUpdateParams: jsb.SubscriptionUpdateParams;
static ProductDetailsParams: typeof jsb.ProductDetailsParams;
static SubscriptionUpdateParams: typeof jsb.SubscriptionUpdateParams;
static Builder: BillingFlowParamsBuilder;
public static newBuilder(): BillingFlowParamsBuilder;
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/google/billing/billing.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-namespace */
/****************************************************************************
Copyright (c) 2024 Xiamen Yaji Software Co., Ltd.
Expand Down Expand Up @@ -31,11 +32,11 @@ export namespace google {

export const PendingPurchasesParams = jsb.PendingPurchasesParams;

export const ProductDetailsParams = jsb.ProductDetailsParams;
// export const ProductDetailsParams = jsb.ProductDetailsParams;
export const QueryProductDetailsParams = jsb.QueryProductDetailsParams;

export const Product = jsb.Product;
export const BillingFlowParams: typeof jsb.BillingFlowParams = jsb.BillingFlowParams;
export const BillingFlowParams = jsb.BillingFlowParams;

export const ConsumeParams = jsb.ConsumeParams;
export const AcknowledgePurchaseParams = jsb.AcknowledgePurchaseParams;
Expand Down Expand Up @@ -67,10 +68,9 @@ export declare namespace google {
export type Product = jsb.Product;
export namespace BillingFlowParams {
//export type Builder = typeof jsb.BillingFlowParamsBuilder;
export type SubscriptionUpdateParams = typeof jsb.SubscriptionUpdateParams;
export type ProductDetailsParams = typeof jsb.ProductDetailsParams;
export type SubscriptionUpdateParams = jsb.SubscriptionUpdateParams;
export type ProductDetailsParams = jsb.ProductDetailsParams;
}
export type BillingFlowParams = typeof jsb.BillingFlowParams;
export type ConsumeParams = jsb.ConsumeParams;
export type AcknowledgePurchaseParams = jsb.AcknowledgePurchaseParams;
export type QueryPurchasesParams = jsb.QueryPurchasesParams;
Expand Down

0 comments on commit 91d8684

Please sign in to comment.