reactour icon indicating copy to clipboard operation
reactour copied to clipboard

setSteps is marked as an optional prop?

Open CameronB9 opened this issue 1 month ago • 2 comments

I'm getting the below typescript error:

image

I have had a look at the index.d.ts file and it looks like it is marked as optional:

type ClickProps = {
    ...
    setSteps?: Dispatch<React.SetStateAction<StepType[]>>;
}

I have also had a quick look at the source code and it's not conditionally defined there. Am I missing something, should the prop be marked optional?

CameronB9 avatar May 28 '24 12:05 CameronB9