@optique/config 1.0.0-dev.564 → 1.0.0-dev.566
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -86,9 +86,9 @@ interface ConfigLoadResult<TConfigMeta = ConfigMeta> {
|
|
|
86
86
|
*/
|
|
87
87
|
readonly config: unknown;
|
|
88
88
|
/**
|
|
89
|
-
* Metadata about where the config came from.
|
|
89
|
+
* Metadata about where the config came from, if available.
|
|
90
90
|
*/
|
|
91
|
-
readonly meta: TConfigMeta;
|
|
91
|
+
readonly meta: TConfigMeta | undefined;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Required options for ConfigContext when used with `runWith()` or `run()`.
|
|
@@ -188,10 +188,10 @@ interface BindConfigOptions<T, TValue, TConfigMeta = ConfigMeta> {
|
|
|
188
188
|
/**
|
|
189
189
|
* Key or accessor function to extract the value from config.
|
|
190
190
|
* Can be a property key (for top-level config values) or a function
|
|
191
|
-
* that extracts nested values. Accessor callbacks receive config metadata
|
|
192
|
-
* as the second argument.
|
|
191
|
+
* that extracts nested values. Accessor callbacks receive config metadata,
|
|
192
|
+
* if available, as the second argument.
|
|
193
193
|
*/
|
|
194
|
-
readonly key: keyof T | ((config: T, meta: TConfigMeta) => TValue);
|
|
194
|
+
readonly key: keyof T | ((config: T, meta: TConfigMeta | undefined) => TValue);
|
|
195
195
|
/**
|
|
196
196
|
* Default value to use when neither CLI nor config provides a value.
|
|
197
197
|
* If not specified, the parser will fail when no value is available.
|
package/dist/index.d.ts
CHANGED
|
@@ -86,9 +86,9 @@ interface ConfigLoadResult<TConfigMeta = ConfigMeta> {
|
|
|
86
86
|
*/
|
|
87
87
|
readonly config: unknown;
|
|
88
88
|
/**
|
|
89
|
-
* Metadata about where the config came from.
|
|
89
|
+
* Metadata about where the config came from, if available.
|
|
90
90
|
*/
|
|
91
|
-
readonly meta: TConfigMeta;
|
|
91
|
+
readonly meta: TConfigMeta | undefined;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Required options for ConfigContext when used with `runWith()` or `run()`.
|
|
@@ -188,10 +188,10 @@ interface BindConfigOptions<T, TValue, TConfigMeta = ConfigMeta> {
|
|
|
188
188
|
/**
|
|
189
189
|
* Key or accessor function to extract the value from config.
|
|
190
190
|
* Can be a property key (for top-level config values) or a function
|
|
191
|
-
* that extracts nested values. Accessor callbacks receive config metadata
|
|
192
|
-
* as the second argument.
|
|
191
|
+
* that extracts nested values. Accessor callbacks receive config metadata,
|
|
192
|
+
* if available, as the second argument.
|
|
193
193
|
*/
|
|
194
|
-
readonly key: keyof T | ((config: T, meta: TConfigMeta) => TValue);
|
|
194
|
+
readonly key: keyof T | ((config: T, meta: TConfigMeta | undefined) => TValue);
|
|
195
195
|
/**
|
|
196
196
|
* Default value to use when neither CLI nor config provides a value.
|
|
197
197
|
* If not specified, the parser will fail when no value is available.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/config",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.566+f1a575b3",
|
|
4
4
|
"description": "Configuration file support for Optique with Standard Schema validation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@standard-schema/spec": "^1.1.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@optique/core": "1.0.0-dev.
|
|
62
|
+
"@optique/core": "1.0.0-dev.566+f1a575b3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@standard-schema/spec": "^1.1.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsdown": "^0.13.0",
|
|
68
68
|
"typescript": "^5.8.3",
|
|
69
69
|
"zod": "^3.25.0 || ^4.0.0",
|
|
70
|
-
"@optique/env": "1.0.0-dev.
|
|
70
|
+
"@optique/env": "1.0.0-dev.566+f1a575b3"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "tsdown",
|