Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: compiler error with function type narrowing
The `invokeFunc` helper was throwing an error: >>> Cannot invoke an expression whose type lacks a call signature. Type '(() => T) | (T & Function)' has no compatible call signatures. Fixed by using a typeguard. Also increased runtime safety by ensuring that the function is 0-arg. If it requires more args, we won't be able to invoke it with this helper.
- Loading branch information