Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit 5fa76f3

Browse files
authored
fix: add payload type to dispatch (#56)
1 parent 43524b4 commit 5fa76f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/TrackingRoot/TrackingRoot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
import * as React from 'react';
1717

18-
import { TrackingProviderProps as ProviderProps } from '../../types';
18+
import { TrackingProviderProps as ProviderProps, Payload } from '../../types';
1919
import TrackingContext from '../TrackingContext';
2020

2121
type Props = ProviderProps & {
22-
onDispatch?: () => void;
22+
onDispatch?: (payload: Payload) => void;
2323
};
2424

2525
const TrackingRoot = ({ name, onDispatch, children }: Props) => {

0 commit comments

Comments
 (0)