How to type a callback?

as in, var callback: whatGoesHere?
2 Replies
Stole
Stole2y ago
var callback: fn (A, B) -> C, etc It's quite intuitive
aetherclouds
aethercloudsOP2y ago
forgot to mark this as closed since I found it in the docs LOL

Did you find this page helpful?