I had this error in a typescript method:
error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
getPerson(): string {
}
If you declare a return type, you have to return something
getName(): string {
return 'Stef';
}