Closed SIGSTACKFAULT closed 1 year ago
@SIGSTACKFAULT Thanks for your contribution.
Typescript is not happy with the false
value. Can you please check whether using undefined
fixes the issue?
...and it doesn't actually work when it's undefined
. only false
seems to work. I figured anything vaguely falsey would work.
{}
and () => void
don't work either because they exist for the purpose of the checks despite not doing anything
Oh, I thought it worked with undefined
. If it only works with false
, then it might be a typing issue. I will open a new issue and create a new pull request to fix it.
low effort solution, but works. fixes #57.