Skip to content

Commit ed13ead

Browse files
Make onLoaderStart and onLoadError optional (#108)
1 parent de1e64d commit ed13ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {useUpdateWithSetter} from './utils/useUpdateWithSetter';
33
import {LoadError, LoaderStart, NotificationCount} from '@stripe/connect-js';
44

55
export type CommonComponentProps = {
6-
onLoaderStart: ({elementTagName}: LoaderStart) => void;
7-
onLoadError: ({error, elementTagName}: LoadError) => void;
6+
onLoaderStart?: ({elementTagName}: LoaderStart) => void;
7+
onLoadError?: ({error, elementTagName}: LoadError) => void;
88
};
99

1010
export const ConnectPayments = ({

0 commit comments

Comments
 (0)