accurate-interval
accurate-interval copied to clipboard
Typescript: opts variable not labeled as optional.
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