Skip to content

Commit 605c51a

Browse files
author
Daniel Brain
committed
Type fixes
1 parent 7b431d5 commit 605c51a

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/overlay/template.jsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @jsx node */
33
/* eslint max-lines: off, react/jsx-max-depth: off */
44

5-
import { isIos, animate, noop, destroyElement, uniqueID, supportsPopups } from 'belter/src';
5+
import { isIos, animate, noop, destroyElement, uniqueID, supportsPopups, type EventEmitterType } from 'belter/src';
66
import { EVENT, CONTEXT } from 'zoid/src';
77
import { node, type ElementNode } from 'jsx-pragmatic/src';
88
import { LOGO_COLOR, PPLogo, PayPalLogo } from '@paypal/sdk-logos/src';
@@ -14,14 +14,12 @@ export type OverlayProps = {|
1414
context : $Values<typeof CONTEXT>,
1515
close : () => ZalgoPromise<void>,
1616
focus : () => ZalgoPromise<void>,
17-
event : {|
18-
on : (string, () => ?ZalgoPromise<void>) => void
19-
|},
17+
event : EventEmitterType,
2018
frame : ?HTMLElement,
2119
prerenderFrame : ?HTMLElement,
22-
content? : {|
23-
windowMessage? : ?string,
24-
continueMessage? : ?string
20+
content? : void | {|
21+
windowMessage? : string,
22+
continueMessage? : string
2523
|}
2624
|};
2725

src/three-domain-secure/component.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export type TDSProps = {|
2929
onSuccess : (TDSResult) => void,
3030
onError : (mixed) => void,
3131
sdkMeta : string,
32-
content : ?{|
33-
windowMessage : string,
34-
continueMessage : string
32+
content? : void | {|
33+
windowMessage? : string,
34+
continueMessage? : string
3535
|},
3636
userType : ?$Values<typeof USER_TYPE>
3737
|};

0 commit comments

Comments
 (0)