Skip to content
public-library›Rules›TypeScript›Give exported TypeScript interfaces and non-obvious functions doc comments stating their intent

Give exported TypeScript interfaces and non-obvious functions doc comments stating their intent

Versions

A version describes what work must do to comply with the rule. Major: work that complied with the previous version could fail this one. Minor: it still complies, and this version adds guidance. Patch: it still complies, and nothing is added. How versions work

  • 3.0.1

    Latestrelease/162 Dec 2026
    Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
  • 3.0.0

    Majorrelease/114 Nov 2026
    Exported functions, classes, methods, types, and components need a doc comment stating intent and every guarantee callers rely on, with an eslint-plugin-jsdoc configuration that checks that scope; unexported functions need one only when their intent isn't apparent; file headers are no longer required on every file, and guidance on constraints, TODOs, and body comments moved to the Documentation practice rules.
  • 2.0.0

    Majorrelease/82 Nov 2026
    Draft interface contracts before implementation and allow high-level phase intent alongside hidden constraints.
  • 1.0.0

    release/11 Oct 2026
    Add the rule.