@optique/core 1.0.0-dev.1616 → 1.0.0-dev.1659

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.
@@ -1,17 +1,11 @@
1
1
  import { Message } from "./message.cjs";
2
2
  import { HiddenVisibility, OptionName, Usage } from "./usage.cjs";
3
3
  import { ValueParser, ValueParserResult } from "./valueparser.cjs";
4
- import { DeferredParseState, PendingDependencySourceState } from "./dependency.cjs";
5
4
  import { Mode, Parser } from "./parser.cjs";
6
5
 
7
6
  //#region src/primitives.d.ts
8
- /**
9
- * State type for options that may use deferred parsing (DerivedValueParser).
10
- * This extends the normal ValueParserResult to also support DeferredParseState
11
- * and PendingDependencySourceState.
12
- * @internal
13
- */
14
- type OptionState<T> = ValueParserResult<T> | DeferredParseState<T> | PendingDependencySourceState | undefined;
7
+ /** @internal */
8
+ type OptionState<T> = ValueParserResult<T> | undefined;
15
9
  /**
16
10
  * Creates a parser that always succeeds without consuming any input and
17
11
  * produces a constant value of the type {@link T}.
@@ -1,17 +1,11 @@
1
1
  import { Message } from "./message.js";
2
2
  import { HiddenVisibility, OptionName, Usage } from "./usage.js";
3
3
  import { ValueParser, ValueParserResult } from "./valueparser.js";
4
- import { DeferredParseState, PendingDependencySourceState } from "./dependency.js";
5
4
  import { Mode, Parser } from "./parser.js";
6
5
 
7
6
  //#region src/primitives.d.ts
8
- /**
9
- * State type for options that may use deferred parsing (DerivedValueParser).
10
- * This extends the normal ValueParserResult to also support DeferredParseState
11
- * and PendingDependencySourceState.
12
- * @internal
13
- */
14
- type OptionState<T> = ValueParserResult<T> | DeferredParseState<T> | PendingDependencySourceState | undefined;
7
+ /** @internal */
8
+ type OptionState<T> = ValueParserResult<T> | undefined;
15
9
  /**
16
10
  * Creates a parser that always succeeds without consuming any input and
17
11
  * produces a constant value of the type {@link T}.