Skip to content
public-library›Rules›TypeScript›Require caller-owned inputs and document defaults

Require caller-owned inputs and document defaults

Require inputs that the caller must supply; make absence explicit when it has a meaning, including selecting a documented default. Keep implementation choices inside the module when it can determine them itself. When a function takes several parameters, especially booleans or values of the same type, take one options object so each value is named at the call site.

In the full rule