Skip to content

Type for delay argument in README is inaccurate #396

@vmerino

Description

@vmerino

Hello 👋

I noticed the README contains a typescript declaration of:

useInterval(
  callback: () => void,
  delay: number,
  immediate?: boolean /* called when mounted if true */
)

If I'm not mistaken, the delay type should be delay: number | null | false

useInterval(
  callback: () => void,
  delay: number | null | false,
  immediate?: boolean /* called when mounted if true */
)

I tried to submit a pull request to fix it but I received a permission denied error. Thanks!

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