Skip to content

Commit 28f9dcb

Browse files
committed
fix: add types in files
1 parent dd3a293 commit 28f9dcb

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

ml-gsd.d.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,29 @@ interface GsdOptions {
3434
* @default {kind:'gaussian'}
3535
*/
3636
shape?: { kind: string };
37-
// /**
38-
// * Threshold to determine if some peak is candidate to clustering into range.
39-
// * @default 0.25
40-
// */
41-
// broadWidth: number;
4237
/**
4338
* Options for savitz Golay
4439
*/
4540
sgOptions?: { windowSize: number; polynomial: number };
4641
/**
4742
* filter based on intensity of the first derive.
48-
* @default -1;
43+
* @default -1
4944
*/
45+
/**
46+
* Peaks are local maximum(true) or minimum(false)
47+
* @default true
48+
*/
49+
maxCriteria?: boolean;
50+
/**
51+
* Filters based on the amplitude of the first derivative
52+
* @default -1
53+
*/
54+
derivativeThreshold: number;
55+
/**
56+
* Factor to multiply the calculated height (usually 2)
57+
* @default 0
58+
*/
59+
heightFactor: number;
5060
}
5161

5262
export interface Peak {
@@ -92,7 +102,7 @@ export interface OptimizationOptions {
92102
* Time limit to stop the optimization in seconds.
93103
* @default 10
94104
*/
95-
timeout?: number
105+
timeout?: number;
96106
}
97107

98108
export interface OptimizedPeak {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "ml-gsd",
3-
"version": "6.8.0",
3+
"version": "6.7.0",
44
"description": "Global Spectra Deconvolution",
55
"main": "lib/index.js",
66
"module": "src/index.js",
77
"types": "ml-gsd.d.ts",
88
"files": [
9+
"ml-gsd.d.ts",
910
"lib",
1011
"src"
1112
],

0 commit comments

Comments
 (0)