Skip to content
public-library›Rules›TypeScript›Annotate types at module boundaries and where they narrow

Annotate types at module boundaries and where they narrow

Annotate the types of exported functions and values, and annotate anywhere inference would produce a wider type than you mean. Let TypeScript infer everything else.

In the full rule