fcl-js
fcl-js copied to clipboard
[BUG] Transaction subcribe function has incorrect type
Current Behavior
The subscribe function returned by transaction has a type of (arg0: SubscriptionCallback) => () => void. However this function returns an unsubscribe function. It is also unclear if this function throws an error on failure.
Expected Behavior
The type should return an unsubscribe function. It should also indicate if it throws an error. The other once methods should also indicate if they throw errors
Steps To Reproduce
n/a
Environment
- OS:
- Node:
- npm:
What are you currently working on that this is blocking?
No response