We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acd9cda commit 7b7d770Copy full SHA for 7b7d770
pkg/tui/core/core.go
@@ -62,11 +62,11 @@ func CmdHandler(msg tea.Msg) tea.Cmd {
62
// Notice: This function is EXPERIMENTAL and may be changed or removed in a
63
// later release.
64
func Resolve[T any](m tea.Model) T {
65
- if r, ok := m.(interface{ Resolve(any) any }); ok {
+ if r, ok := m.(interface{ Resolve(key any) any }); ok {
66
if v := r.Resolve(any((*T)(nil))); v != nil {
67
return v.(T)
68
}
69
panic(fmt.Sprintf("tui/core: model cannot provide type %T", *new(T)))
70
71
- panic("tui/core: model does not implement Resolve(any) any")
+ panic("tui/core: model does not implement Resolve(key any) any")
72
0 commit comments