Skip to content

Commit

Permalink
docs: fix test docs return type
Browse files Browse the repository at this point in the history
Co-authored-by: Athan <[email protected]>
  • Loading branch information
steff456 and kgryte authored Jul 25, 2023
1 parent f2df12a commit 7948d46
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ import cpolar = require( './index' );
{
const out = [ 0.0, 0.0 ];

cpolar.assign( new Complex128( 5.0, 3.0 ), out, 1, 0 ); // $ExpectType Collection
cpolar.assign( new Complex128( 5.0, 3.0 ), out, 1, 0 ); // $ExpectType Collection<number>
cpolar.assign<number>( new Complex128( 5.0, 3.0 ), out, 1, 0 ); // $ExpectType Collection<number>
}

// The compiler throws an error if the `assign` method is provided a first argument which is not a number...
Expand Down

0 comments on commit 7948d46

Please sign in to comment.