Skip to content

Commit 80df49a

Browse files
committed
refactor: increase type specificity
--- 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: na - task: lint_license_headers status: passed ---
1 parent d08954a commit 80df49a

File tree

2 files changed

+14
-4
lines changed
  • lib/node_modules/@stdlib/stats/base/ztest/one-sample/results

2 files changed

+14
-4
lines changed

lib/node_modules/@stdlib/stats/base/ztest/one-sample/results/float32/docs/types/index.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
// TypeScript Version: 4.1
2020

21+
/**
22+
* Alternative hypothesis.
23+
*/
24+
type Alternative = 'two-sided' | 'greater' | 'less';
25+
2126
/**
2227
* Interface describing test results.
2328
*/
@@ -30,7 +35,7 @@ interface Results {
3035
/**
3136
* Alternative hypothesis.
3237
*/
33-
alternative?: string;
38+
alternative?: Alternative;
3439

3540
/**
3641
* Significance level.
@@ -85,7 +90,7 @@ declare class ResultsStruct {
8590
/**
8691
* Alternative hypothesis.
8792
*/
88-
alternative: string;
93+
alternative: Alternative;
8994

9095
/**
9196
* Significance level.

lib/node_modules/@stdlib/stats/base/ztest/one-sample/results/float64/docs/types/index.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
// TypeScript Version: 4.1
2020

21+
/**
22+
* Alternative hypothesis.
23+
*/
24+
type Alternative = 'two-sided' | 'greater' | 'less';
25+
2126
/**
2227
* Interface describing test results.
2328
*/
@@ -30,7 +35,7 @@ interface Results {
3035
/**
3136
* Alternative hypothesis.
3237
*/
33-
alternative?: string;
38+
alternative?: Alternative;
3439

3540
/**
3641
* Significance level.
@@ -85,7 +90,7 @@ declare class ResultsStruct {
8590
/**
8691
* Alternative hypothesis.
8792
*/
88-
alternative: string;
93+
alternative: Alternative;
8994

9095
/**
9196
* Significance level.

0 commit comments

Comments
 (0)