Skip to content

Commit fd2812a

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent f9201da commit fd2812a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/full-by/docs/types

lib/node_modules/@stdlib/ndarray/base/full-by/docs/types/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import { Shape, Order, typedndarray, float64ndarray, float32ndarray, int32ndarray, int16ndarray, int8ndarray, uint32ndarray, uint16ndarray, uint8ndarray, uint8cndarray, boolndarray, complex128ndarray, complex64ndarray, genericndarray, DataType, Float64DataType, Float32DataType, Complex128DataType, Complex64DataType, Int32DataType, Int16DataType, Int8DataType, Uint32DataType, Uint16DataType, Uint8DataType, Uint8cDataType, BooleanDataType, GenericDataType } from '@stdlib/types/ndarray';
24+
import { ComplexLike } from '@stdlib/types/complex';
2425

2526
/**
2627
* Callback invoked for each ndarray element.
@@ -119,7 +120,7 @@ declare function fullBy<ThisArg = unknown>( dtype: Float32DataType, shape: Shape
119120
* var dt = String( getDType( arr ) );
120121
* // returns 'complex128'
121122
*/
122-
declare function fullBy<ThisArg = unknown>( dtype: Complex128DataType, shape: Shape, order: Order, clbk: Callback<any, ThisArg>, thisArg?: ThisArg ): complex128ndarray;
123+
declare function fullBy<ThisArg = unknown>( dtype: Complex128DataType, shape: Shape, order: Order, clbk: Callback<number | ComplexLike, ThisArg>, thisArg?: ThisArg ): complex128ndarray;
123124

124125
/**
125126
* Returns an ndarray filled according to a callback function and having a specified shape and data type.
@@ -145,7 +146,7 @@ declare function fullBy<ThisArg = unknown>( dtype: Complex128DataType, shape: Sh
145146
* var dt = String( getDType( arr ) );
146147
* // returns 'complex64'
147148
*/
148-
declare function fullBy<ThisArg = unknown>( dtype: Complex64DataType, shape: Shape, order: Order, clbk: Callback<any, ThisArg>, thisArg?: ThisArg ): complex64ndarray;
149+
declare function fullBy<ThisArg = unknown>( dtype: Complex64DataType, shape: Shape, order: Order, clbk: Callback<number | ComplexLike, ThisArg>, thisArg?: ThisArg ): complex64ndarray;
149150

150151
/**
151152
* Returns an ndarray filled according to a callback function and having a specified shape and data type.

0 commit comments

Comments
 (0)