mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 00:03:00 +00:00
fix(coding-agent): fix Theme type cast in todo hook example
This commit is contained in:
parent
9d8230dfc6
commit
65d3081d80
1 changed files with 2 additions and 1 deletions
|
|
@ -127,7 +127,8 @@ export default function (pi: HookAPI) {
|
|||
const todos = getTodos(ctx);
|
||||
|
||||
await ctx.ui.custom<void>((_tui, theme, done) => {
|
||||
return new TodoListComponent(todos, theme, () => done());
|
||||
// Cast: Theme.fg uses ThemeColor union type, but we only use standard colors
|
||||
return new TodoListComponent(todos, theme as { fg: (color: string, text: string) => string }, () => done());
|
||||
});
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue