@clerc/parser 1.0.0-beta.26 → 1.0.0-beta.27

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -42,13 +42,13 @@ interface TypeFunction<T = unknown> {
42
42
  */
43
43
  type IgnoreFunction = (type: typeof KNOWN_FLAG | typeof UNKNOWN_FLAG | typeof PARAMETER, arg: string) => boolean;
44
44
  type TypeValue<T = unknown> = TypeFunction<T> | readonly [TypeFunction<T>];
45
- type Foo = RequireExactlyOneOrNone<{
45
+ type FlagRequiredOrDefault = RequireExactlyOneOrNone<{
46
46
  /** The default value of the flag. */
47
47
  default?: unknown;
48
48
  /** Whether the flag is required. */
49
49
  required?: boolean;
50
50
  }, "default" | "required">;
51
- type BaseFlagOptions<T extends TypeValue = TypeValue> = Foo & {
51
+ type BaseFlagOptions<T extends TypeValue = TypeValue> = FlagRequiredOrDefault & {
52
52
  /**
53
53
  * The type constructor or a function to convert the string value.
54
54
  * To support multiple occurrences of a flag (e.g., --file a --file b), wrap the type in an array: [String], [Number].
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/parser",
3
- "version": "1.0.0-beta.26",
3
+ "version": "1.0.0-beta.27",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve)",
5
5
  "type": "module",
6
6
  "description": "Clerc parser",
@@ -56,6 +56,6 @@
56
56
  "nopt": "^9.0.0",
57
57
  "type-flag": "^4.0.3",
58
58
  "yargs-parser": "^22.0.0",
59
- "@clerc/utils": "1.0.0-beta.26"
59
+ "@clerc/utils": "1.0.0-beta.27"
60
60
  }
61
61
  }