Robuta

https://bobbyhadz.com/blog/typescript-expression-of-type-void-cannot-be-tested An expression of type 'void' cannot be tested for truthiness | bobbyhadz The error "An expression of type 'void' cannot be tested for truthiness" occurs when we forget to return a value from a function. expressiontypevoid