5 ms·
Why was it unable to infer the type of the return value for generateSeries? The function only has one return statement, and it already knows the type of the ret
by tantalor 12y ago
Why was it unable to infer the type of the return value for generateSeries? The function only has one return statement, and it already knows the type of the return variable is {Array}.
- veselin 12y agoIt never shows types of return values, unless it is undefined. The reason is that the method may be overridden with a method with other return type.