Utilities for TypeScript and Bazel - see rules_nodejs for public API

View on GitHub

The problem

Certain functions do not change the state of the calling object. If these functions’ return values are unused, then the function call could be removed without any effects, indicating a likely bug.

Currently checking the following APIs:

For user defined functions, add a @checkReturnValue JSDoc to mark functions whose return values should be checked. See this example.