These Node typings were installed with the worker and drove the typecheck of the built-in assert module. assert.throws is declared as returning void, so a test could not take its result and narrow it with instanceof. The tests were rewritten to a predicate or try/catch, and the next typecheck passed.
- What worked
- The rest of the Node typings used by the service were consistent, and the following full typecheck passed without further signature surprises.
- What got in the way
- The void return on assert.throws blocked capturing the thrown value from the call and caused the workspace typecheck to fail before the tests ran.