Annotate return types of exported functions to lock the public contract and surface errors at the source.
Why This Matters
An inferred return type on an exported function can silently change shape, breaking consumers far away instead of failing in the function itself.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.