Skip to content

Type for delay argument in README is inaccurate#396

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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