@zakodium/nmr-types 0.5.21 → 0.5.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,13 @@
1
1
  import type * as Filters from 'ml-signal-processing';
2
2
  import type { FilterXYType } from 'ml-signal-processing';
3
3
  import type { FromTo } from 'cheminfo-types';
4
+ import type { GaussianShape1D } from 'ml-peak-shape-generator';
5
+ import type { GeneralizedLorentzianShape1D } from 'ml-peak-shape-generator';
4
6
  import type { Logger } from 'cheminfo-types';
7
+ import type { LorentzianShape1D } from 'ml-peak-shape-generator';
5
8
  import type { NumberArray } from 'cheminfo-types';
6
9
  import type { PeakXYWidth } from 'cheminfo-types';
7
- import type { Shape1D } from 'ml-peak-shape-generator';
10
+ import type { PseudoVoigtShape1D } from 'ml-peak-shape-generator';
8
11
  import type { XYEquallySpacedOptions } from 'ml-spectra-processing';
9
12
 
10
13
  export declare interface AirplsOptions {
@@ -500,7 +503,7 @@ export declare type MatrixProperties = Record<string, Properties>;
500
503
  export declare interface NMRPeak1D extends PeakXYWidth {
501
504
  id?: string;
502
505
  kind?: SignalKind;
503
- shape?: Shape1D;
506
+ shape?: NMRShape1D;
504
507
  originalX?: number;
505
508
  }
506
509
 
@@ -514,6 +517,8 @@ export declare interface NMRRange {
514
517
  signals?: NMRSignal1D[];
515
518
  }
516
519
 
520
+ export declare type NMRShape1D = GaussianShape1D | LorentzianShape1D | PseudoVoigtShape1D | GeneralizedLorentzianShape1D;
521
+
517
522
  export declare interface NMRSignal1D {
518
523
  delta: number;
519
524
  id?: string;
@@ -643,7 +648,7 @@ declare interface SelectField extends Field<any> {
643
648
  choices: any[];
644
649
  }
645
650
 
646
- export declare type Shape1DWithFWHM = Omit<Shape1D, 'fwhm'> & {
651
+ export declare type Shape1DWithFWHM = Omit<NMRShape1D, 'fwhm'> & {
647
652
  fwhm: number;
648
653
  };
649
654
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zakodium/nmr-types",
3
- "version": "0.5.21",
3
+ "version": "0.5.23",
4
4
  "description": "Types related to NMR data processing.",
5
5
  "author": "Zakodium Sàrl",
6
6
  "license": "CC-BY-NC-SA-4.0",
@@ -25,18 +25,18 @@
25
25
  "devDependencies": {
26
26
  "@types/node": "^24.13.3",
27
27
  "cheminfo-types": "^1.15.0",
28
- "esbuild": "^0.28.1",
28
+ "esbuild": "^0.28.2",
29
29
  "rimraf": "^6.1.3",
30
30
  "typescript": "~6.0.3",
31
31
  "vitest": "^4.1.10"
32
32
  },
33
33
  "dependencies": {
34
- "ml-peak-shape-generator": "^5.2.1",
34
+ "ml-peak-shape-generator": "^5.5.0",
35
35
  "ml-signal-processing": "^2.2.2",
36
- "ml-spectra-processing": "^14.29.2"
36
+ "ml-spectra-processing": "^14.33.0"
37
37
  },
38
38
  "volta": {
39
39
  "extends": "../../../package.json"
40
40
  },
41
- "gitHead": "3bd1799cd7b26285a44b804384be4df5658dc3ea"
41
+ "gitHead": "36bc3cc25e2173bc8dd9236faebc0b082b937c89"
42
42
  }