We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 421843b commit b31c7dcCopy full SHA for b31c7dc
progress/progress.go
@@ -182,15 +182,15 @@ func New(opts ...Option) Model {
182
}
183
184
// Init exists to satisfy the tea.Model interface.
185
-func (m Model) Init() (tea.Model, tea.Cmd) {
+func (m Model) Init() (Model, tea.Cmd) {
186
return m, nil
187
188
189
// Update is used to animate the progress bar during transitions. Use
190
// SetPercent to create the command you'll need to trigger the animation.
191
//
192
// If you're rendering with ViewAs you won't need this.
193
-func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
+func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
194
switch msg := msg.(type) {
195
case FrameMsg:
196
if msg.id != m.id || msg.tag != m.tag {
0 commit comments