nmr-processing 13.0.0 → 13.0.2

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.
@@ -61,12 +61,14 @@ export declare function apodization(data: DataReIm | DataXReIm, options?: Apodiz
61
61
  im: DoubleArray;
62
62
  };
63
63
 
64
- export declare interface Apodization2DOptions {
65
- f1: ApodizationOptions;
66
- f2: ApodizationOptions;
64
+ export declare interface Apodization1DOptions {
65
+ apply?: boolean;
66
+ shapes?: Apodization2DOptions;
67
67
  }
68
68
 
69
- export declare function apodizationFilter(datum1D: Entry1DApodizationFilter, options: ApodizationOptions): {
69
+ export declare type Apodization2DOptions = Shapes<FlexibleWindowFunctions>;
70
+
71
+ export declare function apodizationFilter(datum1D: Entry1DApodizationFilter, options: Apodization1DOptions): {
70
72
  re: DoubleArray;
71
73
  im: DoubleArray;
72
74
  };
@@ -86,18 +88,6 @@ export declare interface ApodizationFilterOptions {
86
88
  windowData?: Float64Array;
87
89
  }
88
90
 
89
- export declare interface ApodizationOptions {
90
- /**
91
- * apply the window data to input data
92
- * @default true
93
- */
94
- apply?: boolean;
95
- /**
96
- * parameters of the shape plus the kind of shape to identify
97
- */
98
- shapes?: Array<ShapeToAdd<FlexibleWindowFunctions>>;
99
- }
100
-
101
91
  /***
102
92
  * @param {object} Filters [{name:'',options:{}},{...}]
103
93
  */
@@ -466,7 +456,7 @@ export { FiltersManager }
466
456
  */
467
457
  export declare function findMultiplet(name: string): MultipletDefinition | undefined;
468
458
 
469
- export declare type FlexibleWindowFunctions = Exponential<Partial<ExponentialOptions>> | LorentToGauss<Partial<LorentzToGaussOptions>> | SineBell<Partial<SineBellOptions>> | SineSquare<Partial<SineBellOptions>> | Traf<Partial<TrafOptions>> | ModifiedGaussian<Partial<ModifiedGaussianOptions>>;
459
+ export declare type FlexibleWindowFunctions = Exponential<Partial<ExponentialOptions>> | LorentToGauss<Partial<LorentzToGaussOptions>> | SineBell<Partial<SineBellOptions>> | SineSquare<Partial<SineSquareOptions>> | Traf<Partial<TrafOptions>> | ModifiedGaussian<Partial<ModifiedGaussianOptions>>;
470
460
 
471
461
  export declare interface ForwardLPOptions {
472
462
  /**
@@ -2657,7 +2647,7 @@ export declare function normalizeNucleus(nucleus: string): string;
2657
2647
 
2658
2648
  export { Nuclei }
2659
2649
 
2660
- export declare type Nucleus = Nuclei | `${Nuclei},${Nuclei}` | (string & {});
2650
+ export declare type Nucleus = Nuclei | `${Nuclei},${Nuclei}` | (string & Record<never, never>);
2661
2651
 
2662
2652
  declare type Nucleus_2 = Nuclei | (string & Record<never, never>);
2663
2653
 
@@ -3408,9 +3398,11 @@ declare interface ShapeOptions<ShapeWindow = WindowFunctions> {
3408
3398
  /**
3409
3399
  * parameters of the shape plus the kind of shape to identify
3410
3400
  */
3411
- shapes?: Array<ShapeToAdd<ShapeWindow>>;
3401
+ shapes?: Shapes<ShapeWindow>;
3412
3402
  }
3413
3403
 
3404
+ declare type Shapes<ShapeWindow = WindowFunctions> = Partial<Record<WindowFunctions['kind'], ShapeToAdd<ShapeWindow>>>;
3405
+
3414
3406
  declare interface ShapeToAdd<ShapeWindows = WindowFunctions> {
3415
3407
  /**
3416
3408
  * if it is false the shape is not included in the apodization
@@ -3714,6 +3706,8 @@ declare interface SineSquare<ShapeOption = SineBellOptions> {
3714
3706
  options: ShapeOption;
3715
3707
  }
3716
3708
 
3709
+ declare type SineSquareOptions = Omit<SineBellOptions, 'exponent'>;
3710
+
3717
3711
  export declare type Solvent = keyof typeof impuritiesContent;
3718
3712
 
3719
3713
  declare type Solvent_2 = keyof typeof impurities;