Skip to content

Commit 266be21

Browse files
committed
fix: correct function signature of TypeScript declaration
--- 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 da9d08b commit 266be21

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/node_modules/@stdlib/random/iter/frechet/docs/types/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ interface Iterator<T> extends TypedIterator<T> {
9393
*
9494
* @param alpha - shape parameter
9595
* @param s - rate parameter
96+
* @param m - location parameter
9697
* @param options - function options
9798
* @throws `alpha` must be a positive number
9899
* @throws `s` must be a positive number
@@ -101,7 +102,7 @@ interface Iterator<T> extends TypedIterator<T> {
101102
* @returns iterator
102103
*
103104
* @example
104-
* var iter = iterator( 2.0, 5.0 );
105+
* var iter = iterator( 2.0, 5.0, 3.0 );
105106
*
106107
* var r = iter.next().value;
107108
* // returns <number>
@@ -114,7 +115,7 @@ interface Iterator<T> extends TypedIterator<T> {
114115
*
115116
* // ...
116117
*/
117-
declare function iterator( alpha: number, s: number, options?: Options ): Iterator<number>;
118+
declare function iterator( alpha: number, s: number, m: number, options?: Options ): Iterator<number>;
118119

119120

120121
// EXPORTS //

lib/node_modules/@stdlib/random/iter/frechet/docs/types/test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import iterator = require( './index' );
2323

2424
// The function returns an iterator...
2525
{
26-
iterator( 2.0, 5.0 ); // $ExpectType Iterator<number>
27-
iterator( 2.0, 5.0, {} ); // $ExpectType Iterator<number>
28-
iterator( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType Iterator<number>
26+
iterator( 2.0, 5.0, 3.0 ); // $ExpectType Iterator<number>
27+
iterator( 2.0, 5.0, 3.0, {} ); // $ExpectType Iterator<number>
28+
iterator( 2.0, 5.0, 3.0, { 'iter': 10 } ); // $ExpectType Iterator<number>
2929
}
3030

3131
// The compiler throws an error if the function is provided invalid input arguments...
@@ -39,4 +39,5 @@ import iterator = require( './index' );
3939
{
4040
iterator(); // $ExpectError
4141
iterator( 2.0 ); // $ExpectError
42+
iterator( 2.0, 5.0 ); // $ExpectError
4243
}

0 commit comments

Comments
 (0)