Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand All @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand All @@ -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
}