Skip to content

Commit cb4c595

Browse files
committed
refactor: improve 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 80df49a commit cb4c595

File tree

2 files changed

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

2 files changed

+9
-9
lines changed

lib/node_modules/@stdlib/stats/base/ztest/one-sample/results/factory/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<T> {
3035
/**
3136
* Alternative hypothesis.
3237
*/
33-
alternative?: string;
38+
alternative?: Alternative;
3439

3540
/**
3641
* Significance level.
@@ -85,7 +90,7 @@ declare class ResultsStruct<T> {
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/struct-factory/docs/types/index.d.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface Results<T> {
3030
/**
3131
* Alternative hypothesis.
3232
*/
33-
alternative?: string;
33+
alternative?: number;
3434

3535
/**
3636
* Significance level.
@@ -85,7 +85,7 @@ declare class Struct<T> {
8585
/**
8686
* Alternative hypothesis.
8787
*/
88-
alternative: string;
88+
alternative: number;
8989

9090
/**
9191
* Significance level.
@@ -116,11 +116,6 @@ declare class Struct<T> {
116116
* Standard error of the mean.
117117
*/
118118
sd: number;
119-
120-
/**
121-
* Test method.
122-
*/
123-
method: string;
124119
}
125120

126121
/**

0 commit comments

Comments
 (0)