Closed dolanmiu closed 10 months ago
A clear and concise description of what the bug is.
Follow https://docs.react-joyride.com/custom-components to create a custom beacon (regular React component)
My custom beacon:
const CustomBeacon = (props) => { console.log(props); return ( <div>Custom Beacon</div> ); };
Console Output:
Console
{ "aria-label": "Open the dialog", "title": "Open the dialog", "onClick": [Function], "onMouseOver": [Function] }
However, type definitions BeaconRenderProps is of:
BeaconRenderProps
export interface BeaconRenderProps { continuous: boolean; index: number; isLastStep: boolean; setTooltipRef: () => void; size: number; step: Step; }
https://github.com/gilbarbara/react-joyride/blob/main/types/index.d.ts#L112-L119
Types are wrong
I expect the types to be correct
🐛 Bug Report
A clear and concise description of what the bug is.
To Reproduce
Follow https://docs.react-joyride.com/custom-components to create a custom beacon (regular React component)
My custom beacon:
Console
Output:However, type definitions
BeaconRenderProps
is of:https://github.com/gilbarbara/react-joyride/blob/main/types/index.d.ts#L112-L119
Types are wrong
Expected behavior
I expect the types to be correct