diff --git a/index.d.ts b/index.d.ts index b85319b..371593e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -25,14 +25,24 @@ type InitOptions = { }; type OpenCheckoutOptions = { - hostedPage: Function; - layout: Layout; - loaded: Function; - error: Function; - success(hostedPageId: string): void; - close: Function; - step(currentStep: string): void; -}; + hostedPage(): Promise + layout?: Layout + loaded?: Function + error?: Function + success?(hostedPageId: string): void + close?: Function + step?(currentStep: string): void +} + +export type HostedPage = { + id: string + type: string + url: string + state: string + embed: boolean + created_at: number + expires_at: number +} interface AddressDetails { first_name?: string;