@gunshi/plugin-renderer 0.26.3 → 0.27.0-alpha.5
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/index.d.ts +0 -7
- package/package.json +9 -9
package/lib/index.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ type CommonArgType = {
|
|
|
30
30
|
};
|
|
31
31
|
declare const COMMON_ARGS: CommonArgType;
|
|
32
32
|
declare const COMMAND_BUILTIN_RESOURCE_KEYS: readonly ["USAGE", "COMMAND", "SUBCOMMAND", "COMMANDS", "ARGUMENTS", "OPTIONS", "EXAMPLES", "FORMORE", "NEGATABLE", "DEFAULT", "CHOICES"];
|
|
33
|
-
|
|
34
33
|
//#endregion
|
|
35
34
|
//#region ../shared/src/types.d.ts
|
|
36
35
|
type RemoveIndexSignature<T> = { [K in keyof T as string extends K ? never : number extends K ? never : K]: T[K] };
|
|
@@ -65,7 +64,6 @@ type CommandBuiltinKeys = GenerateNamespacedKey<BuiltinResourceKeys> | 'descript
|
|
|
65
64
|
* The command i18n option keys are used by the i18n plugin for translation.
|
|
66
65
|
*/
|
|
67
66
|
type CommandArgKeys<A extends Args> = GenerateNamespacedKey<KeyOfArgs<RemovedIndex<A>>, typeof ARG_PREFIX>;
|
|
68
|
-
|
|
69
67
|
//#endregion
|
|
70
68
|
//#region src/types.d.ts
|
|
71
69
|
/**
|
|
@@ -83,7 +81,6 @@ interface UsageRendererCommandContext<G extends GunshiParams<any> = DefaultGunsh
|
|
|
83
81
|
*/
|
|
84
82
|
loadCommands: <G extends GunshiParams = DefaultGunshiParams>() => Promise<Command<G>[]>;
|
|
85
83
|
}
|
|
86
|
-
|
|
87
84
|
//#endregion
|
|
88
85
|
//#region src/header.d.ts
|
|
89
86
|
/**
|
|
@@ -92,7 +89,6 @@ interface UsageRendererCommandContext<G extends GunshiParams<any> = DefaultGunsh
|
|
|
92
89
|
* @returns A rendered header.
|
|
93
90
|
*/
|
|
94
91
|
declare function renderHeader<G extends GunshiParams = DefaultGunshiParams>(ctx: Readonly<CommandContext<G>>): Promise<string>;
|
|
95
|
-
|
|
96
92
|
//#endregion
|
|
97
93
|
//#region src/usage.d.ts
|
|
98
94
|
/**
|
|
@@ -101,7 +97,6 @@ declare function renderHeader<G extends GunshiParams = DefaultGunshiParams>(ctx:
|
|
|
101
97
|
* @returns A rendered usage.
|
|
102
98
|
*/
|
|
103
99
|
declare function renderUsage<G extends GunshiParams = DefaultGunshiParams>(ctx: Readonly<CommandContext<G>>): Promise<string>;
|
|
104
|
-
|
|
105
100
|
//#endregion
|
|
106
101
|
//#region src/validation.d.ts
|
|
107
102
|
/**
|
|
@@ -111,13 +106,11 @@ declare function renderUsage<G extends GunshiParams = DefaultGunshiParams>(ctx:
|
|
|
111
106
|
* @returns A rendered validation error.
|
|
112
107
|
*/
|
|
113
108
|
declare function renderValidationErrors<G extends GunshiParams = DefaultGunshiParams>(_ctx: CommandContext<G>, error: AggregateError): Promise<string>;
|
|
114
|
-
|
|
115
109
|
//#endregion
|
|
116
110
|
//#region src/index.d.ts
|
|
117
111
|
/**
|
|
118
112
|
* usage renderer plugin
|
|
119
113
|
*/
|
|
120
114
|
declare function renderer(): PluginWithExtension<UsageRendererCommandContext>;
|
|
121
|
-
|
|
122
115
|
//#endregion
|
|
123
116
|
export { UsageRendererCommandContext, renderer as default, renderHeader, renderUsage, renderValidationErrors };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gunshi/plugin-renderer",
|
|
3
3
|
"description": "usage renderer plugin for gunshi",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0-alpha.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@gunshi/plugin": "0.
|
|
56
|
+
"@gunshi/plugin": "0.27.0-alpha.5"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@gunshi/plugin-i18n": "0.
|
|
59
|
+
"@gunshi/plugin-i18n": "0.27.0-alpha.5"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"deno": "^2.
|
|
63
|
-
"jsr": "^0.13.
|
|
62
|
+
"deno": "^2.4.0",
|
|
63
|
+
"jsr": "^0.13.5",
|
|
64
64
|
"jsr-exports-lint": "^0.4.1",
|
|
65
65
|
"publint": "^0.3.12",
|
|
66
|
-
"tsdown": "^0.12.
|
|
67
|
-
"typedoc": "^0.28.
|
|
68
|
-
"typedoc-plugin-markdown": "^4.
|
|
69
|
-
"@gunshi/shared": "0.
|
|
66
|
+
"tsdown": "^0.12.9",
|
|
67
|
+
"typedoc": "^0.28.7",
|
|
68
|
+
"typedoc-plugin-markdown": "^4.7.0",
|
|
69
|
+
"@gunshi/shared": "0.27.0-alpha.5"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsdown",
|