@zakodium/nmr-types 0.5.25 → 0.5.26
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.
- package/dist/nmr-types.d.ts +6 -1
- package/package.json +2 -2
package/dist/nmr-types.d.ts
CHANGED
|
@@ -974,11 +974,16 @@ export declare interface SpectrumProcessingOperator<SchemaSettings extends ZodTy
|
|
|
974
974
|
* `null` if the operation doesn't need options, it implies `apply` will always receive `null` as options.
|
|
975
975
|
*/
|
|
976
976
|
schemaOptions: SchemaOptions;
|
|
977
|
+
/**
|
|
978
|
+
* Each operator should define the default settings of operation.
|
|
979
|
+
* It generally depends on spectrum.
|
|
980
|
+
*/
|
|
981
|
+
getDefaultSettings: (spectrum: Spectrum) => SchemaSettings extends ZodType ? z.output<SchemaSettings> : null;
|
|
977
982
|
/**
|
|
978
983
|
* Function that takes the spectrum in the state of the current pipeline step,
|
|
979
984
|
* the operation’s settings, and returns options to apply the operation.
|
|
980
985
|
*/
|
|
981
|
-
computeOptions: (spectrum: Spectrum, settings: z.output<SchemaSettings>) => z.output<SchemaOptions
|
|
986
|
+
computeOptions: (spectrum: Spectrum, settings: z.output<SchemaSettings>) => SchemaOptions extends ZodType ? z.output<SchemaOptions> : null;
|
|
982
987
|
/**
|
|
983
988
|
* Returns whether the operation can be applied on given data.
|
|
984
989
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakodium/nmr-types",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.26",
|
|
4
4
|
"description": "Types related to NMR data processing.",
|
|
5
5
|
"author": "Zakodium Sàrl",
|
|
6
6
|
"license": "CC-BY-NC-SA-4.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"volta": {
|
|
40
40
|
"extends": "../../../package.json"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "be15eb8c8a093cbdcb5eec8d734651350ac1c5c0"
|
|
43
43
|
}
|