Solve Typescript Not All Code Paths Return A Value By Properly Using

Solve Typescript Not All Code Paths Return A Value By Properly Using