Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Aug 24, 2023
1 parent 2a1eb91 commit abdbf01
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 89 deletions.
8 changes: 4 additions & 4 deletions base/filled2d-by/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ import { Collection } from '@stdlib/types/array';
*
* @returns fill value
*/
type Nullary<T> = () => T;
type Nullary<T, V> = ( this: V ) => T;

/**
* Unary callback function.
*
* @param indices - current array element indices
* @returns fill value
*/
type Unary<T> = ( indices: Array<number> ) => T;
type Unary<T, V> = ( this: V, indices: Array<number> ) => T;

/**
* Callback function.
*
* @param indices - current array element indices
* @returns fill value
*/
type Callback<T> = Nullary<T> | Unary<T>;
type Callback<T, V> = Nullary<T, V> | Unary<T, V>;

/**
* Returns a filled two-dimensional nested array according to a provided callback function.
Expand All @@ -59,7 +59,7 @@ type Callback<T> = Nullary<T> | Unary<T>;
* var arr = filled2dBy( [ 1, 5 ], constantFunction( 1.0 ) );
* // returns [ [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ]
*/
declare function filled2dBy<T = unknown>( shape: Collection<number>, clbk: Callback<T>, thisArg?: ThisParameterType<Callback<T>> ): Array<Array<T>>;
declare function filled2dBy<T = unknown, V = unknown>( shape: Collection<number>, clbk: Callback<T, V>, thisArg?: ThisParameterType<Callback<T, V>> ): Array<Array<T>>;


// EXPORTS //
Expand Down
8 changes: 4 additions & 4 deletions base/filled3d-by/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ import { Collection } from '@stdlib/types/array';
*
* @returns fill value
*/
type Nullary<T> = () => T;
type Nullary<T, V> = ( this: V ) => T;

/**
* Unary callback function.
*
* @param indices - current array element indices
* @returns fill value
*/
type Unary<T> = ( indices: Array<number> ) => T;
type Unary<T, V> = ( this: V, indices: Array<number> ) => T;

/**
* Callback function.
*
* @param indices - current array element indices
* @returns fill value
*/
type Callback<T> = Nullary<T> | Unary<T>;
type Callback<T, V> = Nullary<T, V> | Unary<T, V>;

/**
* Returns a filled three-dimensional nested array according to a provided callback function.
Expand All @@ -59,7 +59,7 @@ type Callback<T> = Nullary<T> | Unary<T>;
* var arr = filled3dBy( [ 1, 1, 5 ], constantFunction( 1.0 ) );
* // returns [ [ [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ] ]
*/
declare function filled3dBy<T = unknown>( shape: Collection<number>, clbk: Callback<T>, thisArg?: ThisParameterType<Callback<T>> ): Array<Array<Array<T>>>;
declare function filled3dBy<T = unknown, V = unknown>( shape: Collection<number>, clbk: Callback<T, V>, thisArg?: ThisParameterType<Callback<T, V>> ): Array<Array<Array<T>>>;


// EXPORTS //
Expand Down
8 changes: 4 additions & 4 deletions base/filled4d-by/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ import { Collection } from '@stdlib/types/array';
*
* @returns fill value
*/
type Nullary<T> = () => T;
type Nullary<T, V> = ( this: V ) => T;

/**
* Unary callback function.
*
* @param indices - current array element indices
* @returns fill value
*/
type Unary<T> = ( indices: Array<number> ) => T;
type Unary<T, V> = ( this: V, indices: Array<number> ) => T;

/**
* Callback function.
*
* @param indices - current array element indices
* @returns fill value
*/
type Callback<T> = Nullary<T> | Unary<T>;
type Callback<T, V> = Nullary<T, V> | Unary<T, V>;

/**
* Returns a filled four-dimensional nested array according to a provided callback function.
Expand All @@ -59,7 +59,7 @@ type Callback<T> = Nullary<T> | Unary<T>;
* var arr = filled4dBy( [ 1, 1, 1, 5 ], constantFunction( 1.0 ) );
* // returns [ [ [ [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ] ] ]
*/
declare function filled4dBy<T = unknown>( shape: Collection<number>, clbk: Callback<T>, thisArg?: ThisParameterType<Callback<T>> ): Array<Array<Array<Array<T>>>>;
declare function filled4dBy<T = unknown, V = unknown>( shape: Collection<number>, clbk: Callback<T, V>, thisArg?: ThisParameterType<Callback<T, V>> ): Array<Array<Array<Array<T>>>>;


// EXPORTS //
Expand Down
Loading

0 comments on commit abdbf01

Please sign in to comment.