Skip to content

Commit f1e2034

Browse files
authored
fix: type dtype parameter as DataType
PR-URL: #12534 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 098451f commit f1e2034

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/blas/tools/swap-factory/docs/types

lib/node_modules/@stdlib/blas/tools/swap-factory/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

23-
import { ndarray } from '@stdlib/types/ndarray';
23+
import { ndarray, DataType } from '@stdlib/types/ndarray';
2424
import { Collection, AccessorArrayLike } from '@stdlib/types/array';
2525

2626
/**
@@ -81,7 +81,7 @@ type SwapFunction = ( x: ndarray, y: ndarray, dim?: number ) => ndarray;
8181
* var ybuf = y.data;
8282
* // returns <Float64Array>[ 4.0, 2.0, -3.0, 5.0, -1.0 ]
8383
*/
84-
declare function factory<T extends Collection | AccessorArrayLike<any>>( base: BaseFunction<T>, dtype: any ): SwapFunction;
84+
declare function factory<T extends Collection | AccessorArrayLike<any>>( base: BaseFunction<T>, dtype: DataType ): SwapFunction;
8585

8686

8787
// EXPORTS //

0 commit comments

Comments
 (0)