Skip to content

setSteps is marked as an optional prop? #631

Open
@CameronB9

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions