Skip to content

Commit

Permalink
fix: add types in files
Browse files Browse the repository at this point in the history
  • Loading branch information
jobo322 committed Sep 29, 2021
1 parent dd3a293 commit 28f9dcb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
24 changes: 17 additions & 7 deletions ml-gsd.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,29 @@ interface GsdOptions {
* @default {kind:'gaussian'}
*/
shape?: { kind: string };
// /**
// * Threshold to determine if some peak is candidate to clustering into range.
// * @default 0.25
// */
// broadWidth: number;
/**
* Options for savitz Golay
*/
sgOptions?: { windowSize: number; polynomial: number };
/**
* filter based on intensity of the first derive.
* @default -1;
* @default -1
*/
/**
* Peaks are local maximum(true) or minimum(false)
* @default true
*/
maxCriteria?: boolean;
/**
* Filters based on the amplitude of the first derivative
* @default -1
*/
derivativeThreshold: number;
/**
* Factor to multiply the calculated height (usually 2)
* @default 0
*/
heightFactor: number;
}

export interface Peak {
Expand Down Expand Up @@ -92,7 +102,7 @@ export interface OptimizationOptions {
* Time limit to stop the optimization in seconds.
* @default 10
*/
timeout?: number
timeout?: number;
}

export interface OptimizedPeak {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "ml-gsd",
"version": "6.8.0",
"version": "6.7.0",
"description": "Global Spectra Deconvolution",
"main": "lib/index.js",
"module": "src/index.js",
"types": "ml-gsd.d.ts",
"files": [
"ml-gsd.d.ts",
"lib",
"src"
],
Expand Down

0 comments on commit 28f9dcb

Please sign in to comment.