@optique/env 1.0.0-dev.624 → 1.0.0-dev.627

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/index.d.cts CHANGED
@@ -92,6 +92,10 @@ interface BindEnvOptions<M extends Mode, TValue> {
92
92
  readonly key: string;
93
93
  /**
94
94
  * Value parser used to parse the environment variable string value.
95
+ *
96
+ * In sync mode, the value parser must also be synchronous.
97
+ * In async mode, either sync or async value parsers are accepted,
98
+ * since the async pipeline can await sync results as well.
95
99
  */
96
100
  readonly parser: ValueParser<M extends "sync" ? "sync" : Mode, TValue>;
97
101
  /**
package/dist/index.d.ts CHANGED
@@ -92,6 +92,10 @@ interface BindEnvOptions<M extends Mode, TValue> {
92
92
  readonly key: string;
93
93
  /**
94
94
  * Value parser used to parse the environment variable string value.
95
+ *
96
+ * In sync mode, the value parser must also be synchronous.
97
+ * In async mode, either sync or async value parsers are accepted,
98
+ * since the async pipeline can await sync results as well.
95
99
  */
96
100
  readonly parser: ValueParser<M extends "sync" ? "sync" : Mode, TValue>;
97
101
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/env",
3
- "version": "1.0.0-dev.624+efed5985",
3
+ "version": "1.0.0-dev.627+cf4e84f7",
4
4
  "description": "Environment variable support for Optique",
5
5
  "keywords": [
6
6
  "CLI",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "sideEffects": false,
56
56
  "dependencies": {
57
- "@optique/core": "1.0.0-dev.624+efed5985"
57
+ "@optique/core": "1.0.0-dev.627+cf4e84f7"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/node": "^20.19.9",