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!
Hello 👋
I noticed the README contains a typescript declaration of:
If I'm not mistaken, the delay type should be
delay: number | null | falseI tried to submit a pull request to fix it but I received a permission denied error. Thanks!