args-tokens 0.11.0 → 0.12.0
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/lib/resolver.d.ts +10 -0
- package/package.json +1 -1
package/lib/resolver.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { ArgToken } from './parser';
|
|
2
2
|
/**
|
|
3
3
|
* An option schema for an argument.
|
|
4
|
+
*
|
|
5
|
+
* @description This schema is similar to the schema of the `node:utils`.
|
|
6
|
+
* difference is that:
|
|
7
|
+
* - `multiple` property is not supported
|
|
8
|
+
* - `required` property and `description` property are added
|
|
9
|
+
* - `default` property type, not support multiple types
|
|
4
10
|
*/
|
|
5
11
|
export interface ArgOptionSchema {
|
|
6
12
|
/**
|
|
@@ -11,6 +17,10 @@ export interface ArgOptionSchema {
|
|
|
11
17
|
* A single character alias for the option.
|
|
12
18
|
*/
|
|
13
19
|
short?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A description of the argument.
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
14
24
|
/**
|
|
15
25
|
* Whether the argument is required or not.
|
|
16
26
|
*/
|