From 3f9fa5791fe5f6cfc51650b71e31ab4417f71817 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 24 Aug 2026 12:25:16 +0000 Subject: [PATCH] docs: add missing `@throws` tag for `c` in `random/iter/triangular` The `random/iter/triangular` iterator validates its `c` argument and throws a `TypeError` when `c` is not a number, but the function JSDoc omitted the corresponding `@throws` annotation. Add the missing `@throws {TypeError}` tag for `c`, positioned in code order between the `b` type-check and the `a <= c <= b` range-check annotations. Every sibling `random/iter` package that validates a positional argument documents a `@throws` tag for each such argument (40/40 conformance among packages with positional parameters); `triangular` was the sole outlier. Documentation-only; no change to runtime behavior. --- lib/node_modules/@stdlib/random/iter/triangular/lib/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/node_modules/@stdlib/random/iter/triangular/lib/main.js b/lib/node_modules/@stdlib/random/iter/triangular/lib/main.js index 3a867f0edb5d..f94a0751ae10 100644 --- a/lib/node_modules/@stdlib/random/iter/triangular/lib/main.js +++ b/lib/node_modules/@stdlib/random/iter/triangular/lib/main.js @@ -53,6 +53,7 @@ var format = require( '@stdlib/string/format' ); * @param {NonNegativeInteger} [options.iter] - number of iterations * @throws {TypeError} `a` must be a number * @throws {TypeError} `b` must be a number +* @throws {TypeError} `c` must be a number * @throws {RangeError} arguments must satisfy `a <= c <= b` * @throws {TypeError} options argument must be an object * @throws {TypeError} must provide valid options