TSConfig
noImplicitReturns
When enabled, TypeScript will check all code paths in a function to ensure they return a value.
tsTry
functionFunction lacks ending return statement and return type does not include 'undefined'.2366Function lacks ending return statement and return type does not include 'undefined'.lookupHeadphonesManufacturer (color : "blue" | "black"):string {if (color === "blue") {return "beats";} else {"bose";}}