Skip to content

Commit c23a1d5

Browse files
committed
feat!: refactor declarations to use generics
1 parent efcd0af commit c23a1d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/number/float64/base/to-words/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
// TypeScript Version: 2.0
19+
// TypeScript Version: 4.1
2020

2121
/// <reference types="@stdlib/types"/>
2222

@@ -58,7 +58,7 @@ interface ToWords {
5858
* var bool = ( w === out );
5959
* // returns true
6060
*/
61-
assign( x: number, out: Collection, stride: number, offset: number ): Collection; // tslint-disable-line max-line-length
61+
assign<T = any>( x: number, out: Collection<T>, stride: number, offset: number ): Collection<T>; // tslint-disable-line max-line-length
6262
}
6363

6464
/**

lib/node_modules/@stdlib/number/float64/base/to-words/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import toWords = require( './index' );
4545
{
4646
const out = [ 0.0, 0.0 ];
4747

48-
toWords.assign( 3.14e-319, out, 1, 0 ); // $ExpectType Collection
48+
toWords.assign( 3.14e-319, out, 1, 0 ); // $ExpectType Collection<number>
4949
}
5050

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

0 commit comments

Comments
 (0)