Agent skill

explicit-returns

In TypeScript, explicitly type return values for public functions Use when maintaining consistent code style. Style category skill.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/explicit-returns

Metadata

Additional technical details for this skill

category
Style
priority
medium
is built in
YES
session guardian id
builtin_explicit_returns

SKILL.md

Explicit Returns

In TypeScript, explicitly type return values for public functions. Avoid returning undefined implicitly—return null explicitly or use void functions. In arrow functions, be intentional about implicit returns (=> value) vs. explicit (=> { return value; }). Explicit returns make intent clear and catch accidental returns.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results