From 4a09bbd3661a5330136415d54d449925b13db8e6 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 4 Jul 2026 12:20:31 +0000 Subject: [PATCH 1/2] docs: correct smoke test argument in `namespace/pkg2related` The `docs/types/test.ts` smoke test invoked `pkg2related( 'base.sin' )`, passing an alias literal, but per source (`lib/main.js` and the JSDoc `@param`) the function accepts a package name (internal or standalone). Six of the eight sibling packages in `@stdlib/namespace` pass an argument literal that matches their documented `@param` type; `pkg2related` inherited an alias-style literal from `alias2related`. The `$ExpectType` and `$ExpectError` assertions are unchanged. --- .../@stdlib/namespace/pkg2related/docs/types/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/namespace/pkg2related/docs/types/test.ts b/lib/node_modules/@stdlib/namespace/pkg2related/docs/types/test.ts index c35a499a0e63..09c6b455a83e 100644 --- a/lib/node_modules/@stdlib/namespace/pkg2related/docs/types/test.ts +++ b/lib/node_modules/@stdlib/namespace/pkg2related/docs/types/test.ts @@ -23,7 +23,7 @@ import pkg2related = require( './index' ); // The function returns an array of strings or null... { - pkg2related( 'base.sin' ); // $ExpectType string[] | null + pkg2related( '@stdlib/math/base/special/sin' ); // $ExpectType string[] | null } // The compiler throws an error if the function is not provided a string... @@ -40,5 +40,5 @@ import pkg2related = require( './index' ); // The compiler throws an error if the function is provided an unsupported number of arguments... { - pkg2related( 'base.sin', 'beep' ); // $ExpectError + pkg2related( '@stdlib/math/base/special/sin', 'beep' ); // $ExpectError } From ec14dc9f6a6ae35b1477c25e04c00bd37af7a7a0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 4 Jul 2026 12:20:37 +0000 Subject: [PATCH 2/2] docs: correct smoke test argument in `namespace/standalone2pkg` The `docs/types/test.ts` smoke test invoked `standalone2pkg( 'base.sin' )`, passing an alias literal, but per source (`lib/main.js` and the JSDoc `@param`) the function accepts a standalone package name (e.g., `@stdlib/math-base-special-sin`). Six of the eight sibling packages in `@stdlib/namespace` pass an argument literal that matches their documented `@param` type; `standalone2pkg` inherited an alias-style literal. The `$ExpectType` and `$ExpectError` assertions are unchanged. --- .../@stdlib/namespace/standalone2pkg/docs/types/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/namespace/standalone2pkg/docs/types/test.ts b/lib/node_modules/@stdlib/namespace/standalone2pkg/docs/types/test.ts index 1edabac8cdc9..8f0970b2c14b 100644 --- a/lib/node_modules/@stdlib/namespace/standalone2pkg/docs/types/test.ts +++ b/lib/node_modules/@stdlib/namespace/standalone2pkg/docs/types/test.ts @@ -23,7 +23,7 @@ import standalone2pkg = require( './index' ); // The function returns a string or null... { - standalone2pkg( 'base.sin' ); // $ExpectType string | null + standalone2pkg( '@stdlib/math-base-special-sin' ); // $ExpectType string | null } // The compiler throws an error if the function is not provided a string... @@ -40,5 +40,5 @@ import standalone2pkg = require( './index' ); // The compiler throws an error if the function is provided an unsupported number of arguments... { - standalone2pkg( 'base.sin', 'beep' ); // $ExpectError + standalone2pkg( '@stdlib/math-base-special-sin', 'beep' ); // $ExpectError }