Skip to content

Commit 3bfda46

Browse files
AgentEnderclaude
andcommitted
fix(cli-forge): update CLI type annotations in documentation tools
Updates type annotations to be compatible with the new CLI interface that includes TChildren, THandlerReturn, and TParent type parameters: - generate-documentation.ts: Uses CLI<any, any, any> for the command - documentation.ts: Adds `as unknown as CLI` cast for builder call These changes ensure the documentation generation tools work correctly with the expanded CLI type without requiring full type inference. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b182f27 commit 3bfda46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli-forge/src/bin/commands/generate-documentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function withGenerateDocumentationArgs<T extends ParsedArgs>(
4747
});
4848
}
4949

50-
export const generateDocumentationCommand: CLI = cli('generate-documentation', {
50+
export const generateDocumentationCommand: CLI<any, any, any> = cli('generate-documentation', {
5151
description: 'Generate documentation for the given CLI',
5252
examples: [
5353
'cli-forge generate-documentation ./bin/my-cli',

packages/cli-forge/src/lib/documentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function generateDocumentation(
5454
// The cli instance here is typed a bit too well
5555
// for the builder function, so we need to cast it to
5656
// a more generic form.
57-
cli.configuration.builder(cli as CLI);
57+
cli.configuration.builder(cli as unknown as CLI);
5858
}
5959
const parser = cli.getParser();
6060

0 commit comments

Comments
 (0)