@optique/core 1.2.0-dev.2230 → 1.2.0-dev.2232

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.
@@ -206,7 +206,7 @@ type DeferredValueSource = "specified" | "fallback";
206
206
  * @template C The handler-time context type passed to the fallback resolver.
207
207
  * @since 1.2.0
208
208
  */
209
- type DeferredValue<T, C = void> = ([C] extends [void] ? (() => T | Promise<T>) : ((ctx: C) => T | Promise<T>)) & {
209
+ type DeferredValue<T, C = void> = ([C] extends [void] ? (() => T | Promise<T>) : [undefined] extends [C] ? ((ctx?: C) => T | Promise<T>) : ((ctx: C) => T | Promise<T>)) & {
210
210
  /**
211
211
  * Which branch produced this value: `"specified"` when the wrapped parser
212
212
  * produced a value, `"fallback"` when the fallback resolver was selected.
@@ -206,7 +206,7 @@ type DeferredValueSource = "specified" | "fallback";
206
206
  * @template C The handler-time context type passed to the fallback resolver.
207
207
  * @since 1.2.0
208
208
  */
209
- type DeferredValue<T, C = void> = ([C] extends [void] ? (() => T | Promise<T>) : ((ctx: C) => T | Promise<T>)) & {
209
+ type DeferredValue<T, C = void> = ([C] extends [void] ? (() => T | Promise<T>) : [undefined] extends [C] ? ((ctx?: C) => T | Promise<T>) : ((ctx: C) => T | Promise<T>)) & {
210
210
  /**
211
211
  * Which branch produced this value: `"specified"` when the wrapped parser
212
212
  * produced a value, `"fallback"` when the fallback resolver was selected.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.2.0-dev.2230",
3
+ "version": "1.2.0-dev.2232",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",
@@ -208,7 +208,7 @@
208
208
  "fast-check": "^4.7.0",
209
209
  "tsdown": "^0.13.0",
210
210
  "typescript": "^5.8.3",
211
- "@optique/env": "1.2.0-dev.2230+7ac5924a"
211
+ "@optique/env": "1.2.0-dev.2232+9fc28f44"
212
212
  },
213
213
  "scripts": {
214
214
  "build": "tsdown",