Callback - PureScript

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

reactormonk

What's the correct type for a callback passed to JS which is getting passed one argument?

reactormonk

I _think_ it's EffectFn1 element Unit, but I'm not 100% sure.

Mason Mackaman

assuming you want to do an effect, yeah, it's EffectFn1

Mason Mackaman

it doesn't necessarily have to return Unit