Skip to content

Commit e702c10

Browse files
committed
Fix FinalStateHasBeenReachedHandler type and set template enum values
1 parent 4efe7d9 commit e702c10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PaylineWidget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type StateType =
2121

2222
export type WillInitHandler = () => void;
2323
export type WillShowHandler = () => void;
24-
export type FinalStateHasBeenReachedHandler = (data: { state: StateType }) => false | void;
24+
export type FinalStateHasBeenReachedHandler = (data: { state: StateType }) => false | unknown;
2525
export type DidShowStateHandler = (data: { state: StateType }) => void;
2626
export type WillDisplayMessageHandler = (data: {
2727
id: string;
@@ -34,7 +34,7 @@ export type BeforePaymentHandler = () => boolean | void;
3434

3535
export interface PaylineWidgetProps extends React.HTMLAttributes<HTMLDivElement> {
3636
token: string;
37-
template?: string;
37+
template?: 'tab' | 'column' | 'lightbox' | 'shortcut';
3838
embeddedRedirectionAllowed?: boolean;
3939
partnerReturnUrl?: string;
4040

0 commit comments

Comments
 (0)