Skip to content

Commit 89773d1

Browse files
committed
refactor: rename symbol
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 9a3d741 commit 89773d1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/node_modules/@stdlib/math/array/tools/unary/docs/types/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type Unary<T, U> = ( x: T ) => U;
5454
/**
5555
* Class for applying a unary function to each element in an input array.
5656
*/
57-
declare class UnaryArray<T, U> {
57+
declare class UnaryFunction<T, U> {
5858
/**
5959
* Constructor for applying a unary function to each element in an input array.
6060
*
@@ -137,7 +137,7 @@ declare class UnaryArray<T, U> {
137137
/**
138138
* Interface defining a constructor which is both "newable" and "callable".
139139
*/
140-
interface UnaryArrayConstructor {
140+
interface UnaryFunctionConstructor {
141141
/**
142142
* Constructor for applying a unary function to each element in a provided array.
143143
*
@@ -162,7 +162,7 @@ interface UnaryArrayConstructor {
162162
* var y = abs.apply( x );
163163
* // returns [ 1.0, 2.0, 3.0 ]
164164
*/
165-
new<T = unknown, U = unknown>( fcn: Unary<T, U>, idtypes: ArrayLike<DataType>, odtypes: ArrayLike<DataType>, policy: OutputPolicy ): UnaryArray<T, U>;
165+
new<T = unknown, U = unknown>( fcn: Unary<T, U>, idtypes: ArrayLike<DataType>, odtypes: ArrayLike<DataType>, policy: OutputPolicy ): UnaryFunction<T, U>;
166166

167167
/**
168168
* Constructor for applying a unary function to each element in a provided array.
@@ -188,7 +188,7 @@ interface UnaryArrayConstructor {
188188
* var y = abs.apply( x );
189189
* // returns [ 1.0, 2.0, 3.0 ]
190190
*/
191-
<T = unknown, U = unknown>( fcn: Unary<T, U>, idtypes: ArrayLike<DataType>, odtypes: ArrayLike<DataType>, policy: OutputPolicy ): UnaryArray<T, U>;
191+
<T = unknown, U = unknown>( fcn: Unary<T, U>, idtypes: ArrayLike<DataType>, odtypes: ArrayLike<DataType>, policy: OutputPolicy ): UnaryFunction<T, U>;
192192
}
193193

194194
/**
@@ -215,7 +215,7 @@ interface UnaryArrayConstructor {
215215
* var y = abs.apply( x );
216216
* // returns [ 1.0, 2.0, 3.0 ]
217217
*/
218-
declare var ctor: UnaryArrayConstructor;
218+
declare var ctor: UnaryFunctionConstructor;
219219

220220

221221
// EXPORTS //

lib/node_modules/@stdlib/math/array/tools/unary/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import Unary = require( './index' );
3232
{
3333
const dtypes: Array<DataType> = [ 'float64', 'float32' ];
3434

35-
new Unary<number, number>( abs, dtypes, dtypes, 'same' ); // $ExpectType UnaryArray<number, number>
35+
new Unary<number, number>( abs, dtypes, dtypes, 'same' ); // $ExpectType UnaryFunction<number, number>
3636

3737
const unary = Unary;
38-
unary<number, number>( abs, dtypes, dtypes, 'same' ); // $ExpectType UnaryArray<number, number>
38+
unary<number, number>( abs, dtypes, dtypes, 'same' ); // $ExpectType UnaryFunction<number, number>
3939
}
4040

4141
// The compiler throws an error if the function is provided a first argument which is not a unary function...

0 commit comments

Comments
 (0)