Skip to content

Commit abdbf01

Browse files
committed
Auto-generated commit
1 parent 2a1eb91 commit abdbf01

File tree

9 files changed

+89
-89
lines changed

9 files changed

+89
-89
lines changed

base/filled2d-by/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ import { Collection } from '@stdlib/types/array';
2727
*
2828
* @returns fill value
2929
*/
30-
type Nullary<T> = () => T;
30+
type Nullary<T, V> = ( this: V ) => T;
3131

3232
/**
3333
* Unary callback function.
3434
*
3535
* @param indices - current array element indices
3636
* @returns fill value
3737
*/
38-
type Unary<T> = ( indices: Array<number> ) => T;
38+
type Unary<T, V> = ( this: V, indices: Array<number> ) => T;
3939

4040
/**
4141
* Callback function.
4242
*
4343
* @param indices - current array element indices
4444
* @returns fill value
4545
*/
46-
type Callback<T> = Nullary<T> | Unary<T>;
46+
type Callback<T, V> = Nullary<T, V> | Unary<T, V>;
4747

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

6464

6565
// EXPORTS //

base/filled3d-by/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ import { Collection } from '@stdlib/types/array';
2727
*
2828
* @returns fill value
2929
*/
30-
type Nullary<T> = () => T;
30+
type Nullary<T, V> = ( this: V ) => T;
3131

3232
/**
3333
* Unary callback function.
3434
*
3535
* @param indices - current array element indices
3636
* @returns fill value
3737
*/
38-
type Unary<T> = ( indices: Array<number> ) => T;
38+
type Unary<T, V> = ( this: V, indices: Array<number> ) => T;
3939

4040
/**
4141
* Callback function.
4242
*
4343
* @param indices - current array element indices
4444
* @returns fill value
4545
*/
46-
type Callback<T> = Nullary<T> | Unary<T>;
46+
type Callback<T, V> = Nullary<T, V> | Unary<T, V>;
4747

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

6464

6565
// EXPORTS //

base/filled4d-by/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ import { Collection } from '@stdlib/types/array';
2727
*
2828
* @returns fill value
2929
*/
30-
type Nullary<T> = () => T;
30+
type Nullary<T, V> = ( this: V ) => T;
3131

3232
/**
3333
* Unary callback function.
3434
*
3535
* @param indices - current array element indices
3636
* @returns fill value
3737
*/
38-
type Unary<T> = ( indices: Array<number> ) => T;
38+
type Unary<T, V> = ( this: V, indices: Array<number> ) => T;
3939

4040
/**
4141
* Callback function.
4242
*
4343
* @param indices - current array element indices
4444
* @returns fill value
4545
*/
46-
type Callback<T> = Nullary<T> | Unary<T>;
46+
type Callback<T, V> = Nullary<T, V> | Unary<T, V>;
4747

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

6464

6565
// EXPORTS //

0 commit comments

Comments
 (0)