You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A no-untyped-parameters rule which will output an error if the signature of a function has untyped parameters but will allow inferring this function return type. It is somewhat how TypeScript's noImplicityAny currently works. Existing function signature rules will require parameters to be annotated but also the return type.
The following should give an error (parameter a isn't typed):
deffn(a): ...
The following shouldn't, and the return type should be inferred as int:
deffn(a: int): returna
The text was updated successfully, but these errors were encountered:
Feature
A
no-untyped-parameters
rule which will output an error if the signature of a function has untyped parameters but will allow inferring this function return type. It is somewhat how TypeScript'snoImplicityAny
currently works. Existing function signature rules will require parameters to be annotated but also the return type.The following should give an error (parameter
a
isn't typed):The following shouldn't, and the return type should be inferred as
int
:The text was updated successfully, but these errors were encountered: