Closed
Description
π Search Terms
isolatedDeclaration
π Version & Regression Information
5.5.0
β― Playground Link
π» Code
export function f() {}
π Actual behavior
Function must have an explicit return type annotation with --isolatedDeclarations. (9007)
π Expected behavior
No error
Additional information about the issue
Functions with no return statements can be easily inferred as type void
, so there is no need to give this warning.