How specify type here?

4 Replies
vince
vince16mo ago
You need to specify a return value in your ProgressProvider function definition I believe
Jochem
Jochem16mo ago
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 function
Nikita
Nikita16mo ago
cyclone2244 helped
Jochem
Jochem16mo ago
I'd just like to point out that returning 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
Want results from more Discord servers?
Add your server