4 Replies
You need to specify a return value in your ProgressProvider function definition I believe
I don't think the issue you're having is a lack of type definition. You're defining
children
as void
, and then trying to call it using parentheses as if it were a function. It's not a function, it's not callable, so you're getting an error that you cannot call a void
you're applying the type the way you're supposed to btw, with the interface definition, it's just that void isn't something you can call like a functioncyclone2244 helped
I'd just like to point out that
return
ing a void in this case is pointless, you don't need the return
keyword
no idea what "children" does, but it'll have its side effects and then just not return anything, so when you return nothing it's the same as not returning anything, afaik