@gunshi/combinators 1.0.0-beta.0 → 1.0.0-beta.2

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/lib/index.d.ts +3 -9
  2. package/package.json +3 -3
package/lib/index.d.ts CHANGED
@@ -1032,7 +1032,7 @@ type PositionalParserKey = 'parse' | 'metavar' | 'description' | 'hidden' | 'req
1032
1032
  * As in {@link WithFlag}, it maps the properties of the parser itself, and reads `any` in a part of
1033
1033
  * its own, so that TypeScript still sees them for a parser typed by a type parameter.
1034
1034
  */
1035
- type PositionalWithParser<S> = { [K in keyof S as K extends PositionalParserKey ? K : never]: S[K] } & ArgSchemaPositionalType & (0 extends 1 & S ? Pick<UntypedCombinatorSchema, PositionalParserKey> : unknown);
1035
+ type PositionalWithParser<S> = { [K in keyof S as K extends PositionalParserKey ? K : never]: S[K]; } & ArgSchemaPositionalType & (0 extends 1 & S ? Pick<UntypedCombinatorSchema, PositionalParserKey> : unknown);
1036
1036
  /**
1037
1037
  * The positional argument schema that {@link positional} returns for a parser `S`:
1038
1038
  * {@link PositionalWithParser} for each schema of a union. For a parser typed by a type parameter,
@@ -1617,7 +1617,7 @@ type Modified<S, F> = S extends unknown ? WithFlag<S, F> : never;
1617
1617
  * For a type parameter, TypeScript does not take it for `Omit<S, K>`, so {@link hidden} and
1618
1618
  * {@link unrequired}, whose results were typed `Omit<S, K>` with their flag, return that type too.
1619
1619
  */
1620
- type Without<S, K> = { [P in keyof S as P extends K ? never : NamedKey<P>]: S[P] };
1620
+ type Without<S, K> = { [P in keyof S as P extends K ? never : NamedKey<P>]: S[P]; };
1621
1621
  /**
1622
1622
  * `K` for a property name, and `never` for the `string`, `number` or `symbol` key of an index
1623
1623
  * signature, such as those of `any`.
@@ -1891,11 +1891,5 @@ declare function merge<T extends Args[]>(...schemas: T): MergeArgs<T>;
1891
1891
  */
1892
1892
  declare function extend<T extends Args, U extends Args>(base: T, overrides: U): Omit<T, keyof U> & U;
1893
1893
  //#endregion
1894
- //#region src/index.d.ts
1895
- /**
1896
- * @author kazuya kawaguchi (a.k.a. kazupon)
1897
- * @license MIT
1898
- */
1899
-
1900
1894
  //#endregion
1901
- export { BaseOptions, BooleanOptions, Combinator, CombinatorOptions, CombinatorSchema, FloatOptions, IntegerOptions, NumberOptions, StringOptions, args, boolean, choice, combinator, describe, extend, float, hidden, integer, map, merge, multiple, number, positional, required, short, string, unrequired, withDefault };
1895
+ export { type BaseOptions, type BooleanOptions, type Combinator, type CombinatorOptions, type CombinatorSchema, type FloatOptions, type IntegerOptions, type NumberOptions, type StringOptions, args, boolean, choice, combinator, describe, extend, float, hidden, integer, map, merge, multiple, number, positional, required, short, string, unrequired, withDefault };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/combinators",
3
3
  "description": "parser combinators for gunshi argument schema",
4
- "version": "1.0.0-beta.0",
4
+ "version": "1.0.0-beta.2",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -53,11 +53,11 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "deno": "^2.7.14",
56
+ "gunshi": "1.0.0-beta.2",
56
57
  "jsr": "^0.14.3",
57
58
  "jsr-exports-lint": "^0.4.2",
58
59
  "publint": "^0.3.20",
59
- "tsdown": "0.21.0",
60
- "gunshi": "1.0.0-beta.0"
60
+ "tsdown": "0.22.14"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "tsdown",