Skip to content

Typescript: opts variable not labeled as optional.  #2

Description

@devtayls

Issue

The opts parameter in the function is not typed as optional, this causes linting to throw an arrow when opts are not provided.

Suggested fix:

Adding '?' to opts parameter in the function definition to signify that it is an optional parameter

Metadata

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